apostrophe question

lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Thu, 2006-09-21 22:05

In my theme I'm using the lightbox javascript module to show the picture when you click on it. So I had to change the link in album.tpl to

<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}" rev="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`"}" title='<h4>{$child.title|markup}</h4><br><a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">View Photo Page</a><br>{g->block type=exif.ExifInfo item=`$child`}' rel="lightbox[photos]">

The issue is when a picture has an apostrphe in the title it breaks the link and messes everything up. Is there a way to either manually type something else in that the browser shows an apostrophe? If there is and I surely hope so is there a way to have g2 do it automaticlly.