Skip to content

Commit

Permalink
pkp/pkp-lib#9421 replace v-html with v-strip-unsave-html
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec authored and asmecher committed Feb 9, 2024
1 parent 999cb80 commit f988258
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ temp
/plugins/paymethod/paypal/vendor/
.project
.project/
.vscode
.buildpath
.settings/
.htaccess
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"chart.js": "^2.9.4",
"clone-deep": "^4.0.1",
"debounce": "^1.2.0",
"dompurify": "^3.0.8",
"element-resize-event": "^3.0.3",
"moment": "^2.29.2",
"tinymce": "^5.10.0",
Expand Down
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-unsave-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-unsave-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 @@ -22,7 +22,7 @@ var template = pkp.Vue.compile('<div class="pkpFormField pkpFormField--text pkpF
' <div' +
' v-if="isPrimaryLocale && description"' +
' class="pkpFormField__description"' +
' v-html="description"' +
' v-strip-unsave-html="description"' +
' :id="describedByDescriptionId"' +
' />' +
' <div class="pkpFormField__control" :class="controlClasses">' +
Expand Down

0 comments on commit f988258

Please sign in to comment.