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
This commit is contained in:
Roan Kattouw 2021-04-29 11:34:48 -07:00
parent 897769a04d
commit 402b01e0ca
1 changed files with 3 additions and 3 deletions

View File

@ -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"