From 402b01e0cae4df050dd24d3e3f99b0272fc12122 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 29 Apr 2021 11:34:48 -0700 Subject: [PATCH] search: Prevent double-escaping of messages passed to typeahead-search The parameters passed to the typeahead-search Vue component don't need to be escaped, they're already escaped by the Vue implementation. Use .text() instead of .escaped() for the i18n messages passed to this component, to prevent them from being escaped twice. Change-Id: I5dcf442f6af181a99123bf7426743af01b097729 --- resources/skins.vector.search/App.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/skins.vector.search/App.vue b/resources/skins.vector.search/App.vue index fdb76f6..e8a3978 100644 --- a/resources/skins.vector.search/App.vue +++ b/resources/skins.vector.search/App.vue @@ -4,14 +4,14 @@ ref="searchForm" :client="getClient" :domain="domain" - :footer-search-text="$i18n('searchsuggest-containing').escaped()" - :suggestions-label="$i18n('searchresults').escaped()" + :footer-search-text="$i18n('searchsuggest-containing').text()" + :suggestions-label="$i18n('searchresults').text()" :accesskey="searchAccessKey" :title="searchTitle" :placeholder="searchPlaceholder" :aria-label="searchPlaceholder" :initial-input-value="searchQuery" - :button-label="$i18n( 'search' ).escaped()" + :button-label="$i18n( 'search' ).text()" :form-action="action" :search-language="language" :show-thumbnail="showThumbnail"