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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Apostrophe Encoding


Go to End


1516 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?