aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2016-02-04 16:58:33 +0100
committerChristian Weiske <cweiske@cweiske.de>2016-02-04 16:58:33 +0100
commitae2d3a27072b157a9c3df2ba1e8101d6d3a70d4f (patch)
treec926835b61962646c7d3cbe48e2c883a09657dd7
parentf156497be5637d7815ae57370e8b175ce6960a19 (diff)
downloadphinde-ae2d3a27072b157a9c3df2ba1e8101d6d3a70d4f.tar.gz
phinde-ae2d3a27072b157a9c3df2ba1e8101d6d3a70d4f.zip
escape html in search results
-rw-r--r--src/phinde/Elasticsearch.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/phinde/Elasticsearch.php b/src/phinde/Elasticsearch.php
index 735b64f..5ad46e7 100644
--- a/src/phinde/Elasticsearch.php
+++ b/src/phinde/Elasticsearch.php
@@ -101,6 +101,7 @@ class Elasticsearch
'highlight' => array(
'pre_tags' => array('<em class="hl">'),
'order' => 'score',
+ 'encoder' => 'html',
'fields' => array(
'title' => array(
'require_field_match' => false,