Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Apostrophe Encoding


Reply


1122 Views

Avatar
Nathan Cox

Community Member, 99 Posts

15 June 2009 at 1:23pm

I've been working on a site recently where a page had a Varchar text field with an apostrophe in it. I noticed SS encodes it as ' in the final output but the problem is IE doesn't recoginse ' (apparently you need to use ' instead).
I can fix the problem by using $Title.RAW in the template so nothing gets encoded but that could get old doing it all over the templates.

Anyway, is there an easier way I'm missing? Is there a header or setting I've missed that solves the problem?