avoinministerio/avoinministerio — pull request #167 by jyrkive (2012-06-29 10:00:34+00:00)
Title: Remove Markdown support from search

See http://am-staging.herokuapp.com/ideat/haku?utf8=%E2%9C%93&searchterm=markdown : a heading in a comment messes up a search result page.

These commits fix the issue by reverting back to the old highlighting implementation based on HTML rather than Markdown. Therefore Markdown in comments is no longer parsed and can't mess up search result pages. HTML in comments is naturally escaped in order to prevent XSS attacks.