News:

Wondering if this will always be free?  See why free is better.

Main Menu

Solved: Appostrophe template parse error

Started by franklos, May 26, 2010, 05:48:37 AM

Previous topic - Next topic

franklos

Hi,

I managed to wrap smf in my CMS layout, bit there is one small problem. When I use a link with an " ' " apostophe.
I get a parse error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/theme1/index.template.php on line 266

And here s line 266:
<li><a  class="last hide" href="/foto-album.html" title="De nieuwste foto's">Foto's</a>

If I change Foto's to Fotoos, everything is okay. Is there a way to be able to use foto' s ?

Thanks, Frank Los.

Uhps sorry for using up database space, the solution I found:
<li><a  class="last hide" href="/foto-album.html" title="De nieuwste foto\'s">Foto\'s</a>

Is this called escaping?





CapadY

Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Advertisement: