On Wed, Jun 27, 2007 at 05:49:33PM -0400, [EMAIL PROTECTED] wrote:
> Anno wrote:
> >> On 6/27/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote:
> 
> >>>   $WikiTitle = 'My Site&#039;s Name Here';
> > 
> > Probably also $WikiTitle = "My Site's Name Here";
> > 
> 
> When that trick won't work, you can also use the standard PHP method of
> slashing internal quotes:
> 
> $WikiTitle = 'He said "Its Bob\'s Site!"';

Sometimes the $WikiTitle appears in HTML attributes as well as normal
text.  For that reason I recommend using &#039; for quotation marks
in $WikiTitle instead of an actual quotation mark.  For example,
several skin templates do

    <img src='$PageLogoUrl' alt='$WikiTitle' border='0' />

and having a quotation mark directly in $WikiTitle will break the
alt= attribute.

Pm

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to