From ae2d3a27072b157a9c3df2ba1e8101d6d3a70d4f Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 4 Feb 2016 16:58:33 +0100 Subject: [PATCH] escape html in search results --- src/phinde/Elasticsearch.php | 1 + 1 file changed, 1 insertion(+) 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(''), 'order' => 'score', + 'encoder' => 'html', 'fields' => array( 'title' => array( 'require_field_match' => false, -- 2.30.2