Jump to:

3393 Posts in 976 Topics by 852 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: 920 Views
  • MKayHavoc
    Avatar
    Community Member
    33 Posts

    Running htmlspecialchars on Search Results Link to this post

    Hi,

    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?

    Cheers

    Ryan

    920 Views
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.