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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

Silverstripe search functionality produces non valid xhtml code


Go to End


2 Posts   1274 Views

Avatar
Roelfsche

25 Posts

12 February 2010 at 3:37am

Hello,
I got a problem with the search functionality.
I set up silverstripe to output xhtml code. Everything works fine until the search functionality is used. The user inserted for example a '&' via the backend (tinymce-editor) in the site content, wich ist correctly translated to & into the database.
If I now start the search, all browsers stop outputting the search because the & is outputted as '&' which violates the xhtml standard.
Is there a function, that transforms the output to valid xhtml in sapphire?
Thank you,
Roelfsche

Avatar
weberho

Community Member, 15 Posts

18 March 2010 at 9:07am

Add patch http://open.silverstripe.org/changeset/100904 to your source, that should fix this issue. See ticket http://open.silverstripe.org/ticket/5101