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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1672 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