From 4caf34506af4725a0e8ddcbdda68d6d72366051e Mon Sep 17 00:00:00 2001 From: Christopher Joe Date: Fri, 20 Oct 2017 14:43:19 +1300 Subject: [PATCH] Fix switch to using the Convert class for decoding --- src/Forms/GridField/GridFieldAddExistingAutocompleter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/GridField/GridFieldAddExistingAutocompleter.php b/src/Forms/GridField/GridFieldAddExistingAutocompleter.php index 8b5f18779..ee4cb4051 100644 --- a/src/Forms/GridField/GridFieldAddExistingAutocompleter.php +++ b/src/Forms/GridField/GridFieldAddExistingAutocompleter.php @@ -254,7 +254,7 @@ class GridFieldAddExistingAutocompleter implements GridField_HTMLProvider, GridF SSViewer::config()->update('source_file_comments', false); $viewer = SSViewer::fromString($this->resultsFormat); foreach ($results as $result) { - $title = html_entity_decode($viewer->process($result)); + $title = Convert::html2raw($viewer->process($result)); $json[] = array( 'label' => $title, 'value' => $title,