Skip to content

Commit 8f6af14

Browse files
Merge pull request #1637 from bc-krishsenthilraj/ES-97
feat(search): ES-97 fixed the html special chars issue in facet names
2 parents 49a1f47 + a19e13e commit 8f6af14

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

templates/components/faceted-search/facets/hierarchy-children.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
rel="nofollow"
88
data-id="{{ id }}"
99
data-faceted-search-facet>
10-
{{title}}
10+
{{{sanitize title}}}
1111
{{#if ../show_product_counts}}
1212
{{#if count}}
1313
<span>({{count}})</span>

templates/components/faceted-search/facets/hierarchy.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h5 class="accordion-title">
3131
rel="nofollow"
3232
data-id="{{ id }}"
3333
data-faceted-search-facet>
34-
{{ title }}
34+
{{{ sanitize title }}}
3535
{{#if ../show_product_counts}}
3636
{{#if count}}
3737
<span>({{ count }})</span>

templates/components/faceted-search/facets/multi.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h5 class="accordion-title">
3030
class="navList-action navList-action--checkbox {{#if selected }} is-selected {{/if}}"
3131
rel="nofollow"
3232
data-faceted-search-facet>
33-
{{ sanitize title }}
33+
{{{ sanitize title }}}
3434
{{#if ../show_product_counts}}
3535
<span>({{ count }})</span>
3636
{{/if}}

templates/components/faceted-search/selected-facets.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h5 class="sidebarBlock-heading">
1515
{{#if facet '===' 'rating'}}
1616
{{lang 'search.faceted.selected.rating-label' rating=title}}
1717
{{else}}
18-
{{ title }}
18+
{{{ sanitize title }}}
1919
{{/if}}
2020

2121
<svg class="icon">

0 commit comments

Comments
 (0)