Skip to content

Commit 34b939b

Browse files
committed
fix(keywords): escape double quotes on keyword name
1 parent 2f6c0c4 commit 34b939b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cds/modules/records/static/templates/cds_records/keywords.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3 class="cds-title-section-decoration bt bw-1 pt-10 mb-20"><i class="fa fa-tag
66
<div class="cds-tags cds-keywords">
77
<ul>
88
<li ng-repeat="keyword in record.metadata.keywords">
9-
<a ng-href='/search?q=keywords.name:"{{ keyword.name }}"'>{{ keyword.name }}</a>
9+
<a ng-href='/search?q=keywords.name:"{{ keyword.name.replace(/"/g, '\\"') }}"'>{{ keyword.name }}</a>
1010
</li>
1111
</ul>
1212
</div>

0 commit comments

Comments
 (0)