Skip to content

Commit

Permalink
pkp/pkp-lib#9717 Use v-strip-unsafe-html instead of v-html
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Feb 21, 2025
1 parent ab5ee00 commit 40f9aeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/importexport/native/templates/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
/>
<span
class="listPanel__itemSubTitle"
v-html="localize(
v-strip-unsafe-html="localize(
item.publications.find(p => p.id == item.currentPublicationId).fullTitle,
item.publications.find(p => p.id == item.currentPublicationId).locale
)"
Expand Down
2 changes: 1 addition & 1 deletion plugins/importexport/onix30/templates/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
/>
<span
class="listPanel__itemSubTitle"
v-html="localize(
v-strip-unsafe-html="localize(
item.publications.find(p => p.id == item.currentPublicationId).fullTitle,
item.publications.find(p => p.id == item.currentPublicationId).locale
)"
Expand Down
2 changes: 1 addition & 1 deletion plugins/pubIds/urn/js/FieldTextUrn.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pkp.registry.registerComponent('FieldTextUrn', {
' <div' +
' v-if="isPrimaryLocale && description"' +
' class="pkpFormField__description"' +
' v-html="description"' +
' v-strip-unsafe-html="description"' +
' :id="describedByDescriptionId"' +
' />' +
' <div class="pkpFormField__control" :class="controlClasses">' +
Expand Down

0 comments on commit 40f9aeb

Please sign in to comment.