Commit 882808bd authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

[highlighting] add encoder="html" param to enshure the exceprt is in a valid HTML

parent 22ac8b27e1f0
......@@ -77,7 +77,7 @@ class CWFacetedSearch(FacetedSearch):
Add custom highlighting
"""
search = search.highlight(*(f if '^' not in f else f.split('^', 1)[0] for f in self.fields))
return search.highlight_options(fragment_size=150)
return search.highlight_options(fragment_size=150, encoder='html')
class ElasticSearchView(StartupView):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment