Skip to content

Commit

Permalink
feat(search): STRF-8350 Fixed the special characters display issue in…
Browse files Browse the repository at this point in the history
… the search results page
  • Loading branch information
bc-krishsenthilraj committed Apr 22, 2020
1 parent 4c165ad commit db39cba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/components/search/heading.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<h1 class="page-heading">
{{lang 'search.results.count' count=result_count search_query=forms.search.query}}
{{{lang 'search.results.count' count=result_count search_query=(sanitize forms.search.query) }}}
</h1>
2 changes: 1 addition & 1 deletion templates/components/search/quick-results.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
</ul>
{{else}}
<p class="quickSearchMessage">
{{lang 'search.results.quick_count' count=pagination.product_results.total search_query=forms.search.query}}
{{{lang 'search.results.quick_count' count=pagination.product_results.total search_query=(sanitize forms.search.query) }}}
</p>
{{/if}}
2 changes: 1 addition & 1 deletion templates/pages/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<div class="search-suggestion">
<p>
{{lang 'forms.search.your_search_for'}}
"<strong>{{forms.search.query}}</strong>"
"<strong>{{{sanitize forms.search.query}}}</strong>"
{{lang 'forms.search.no_match'}}
</p>
</div>
Expand Down

0 comments on commit db39cba

Please sign in to comment.