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 committed Feb 6, 2024
1 parent b6fe009 commit d6637dc
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 @@ -7,6 +7,7 @@ temp
.project
.buildpath
.settings
.vscode
.DS_Store
.php_cs.cache
.php-cs-fixer.cache
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 @@ -85,7 +85,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/pubmed/templates/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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 @@ -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-unsafe-html="description"' +
' :id="describedByDescriptionId"' +
' />' +
' <div class="pkpFormField__control" :class="controlClasses">' +
Expand Down

0 comments on commit d6637dc

Please sign in to comment.