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.

Template Questions

Running htmlspecialchars on Search Results


Reply

990 Views

Avatar
MKayHavoc

10 February 2009 at 5:18am Community Member, 33 Posts

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