escape html in search results
authorChristian Weiske <cweiske@cweiske.de>
Thu, 4 Feb 2016 15:58:33 +0000 (16:58 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 4 Feb 2016 15:58:33 +0000 (16:58 +0100)
src/phinde/Elasticsearch.php

index 735b64f..5ad46e7 100644 (file)
@@ -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,