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.

General Questions /

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

Silverstripe search functionality produces non valid xhtml code


Reply


2 Posts   931 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