Jump to:

23453 Posts in 18902 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Apostrophe Encoding

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

Page: 1
Go to End
Author Topic: 1038 Views
  • Nathan Cox
    Community Member
    99 Posts

    Apostrophe Encoding Link to this post

    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?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.