This may actually belong in the bugs section. I built the search function following the instructions in "4-site-search." and it works flawlessly most of the time but I discovered that if an entry that qualifies as a search result has an ampersand in it, it fails with the following:
XML Parsing Error: not well-formed
Location: http://localhost/silverstripe/media-appearances/results?Search=Heart&formController=media-appearances%2F&executeForm=SearchForm&action_results=Go
Line Number 88, Column 19:
“The Heart & Soul
------------------^
You can't see it here, but in the actual error the caret is pointing to the space after the ampersand. How can I fix this?