Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » Running htmlspecialchars on Search Results

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

Page: 1
Go to End
Author Topic: 971 Views
  • MKayHavoc
    Community Member
    33 Posts

    Running htmlspecialchars on Search Results Link to this post


    Unfortunately some the content stored in my database isn't marked up properly. For example & instead of &. When performing a search the results are being pulled and I'm getting XML error's because of this. I want to wrap the results in the php function htmlspecialchars to get around this.

    How can i do this?



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.