Skip to content

Commit 996ecc7

Browse files
pkp/pkp-lib#9717 Use v-strip-unsafe-html instead of v-html
1 parent 364398b commit 996ecc7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/importexport/native/templates/index.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
/>
8585
<span
8686
class="listPanel__itemSubTitle"
87-
v-html="localize(
87+
v-strip-unsafe-html="localize(
8888
item.publications.find(p => p.id == item.currentPublicationId).fullTitle,
8989
item.publications.find(p => p.id == item.currentPublicationId).locale
9090
)"

templates/submission/review-relation.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div class="submissionWizard__reviewPanel__item">
3030
<template v-if="publication.relationStatus === {\APP\publication\Publication::PUBLICATION_RELATION_PUBLISHED}">
3131
<template v-if="publication.vorDoi">
32-
<span v-html="replaceLocaleParams(i18nRelationWithLink, {ldelim}vorDoi: publication.vorDoi{rdelim})"></span>
32+
<span v-strip-unsafe-html="replaceLocaleParams(i18nRelationWithLink, {ldelim}vorDoi: publication.vorDoi{rdelim})"></span>
3333
</template>
3434
<template v-else>
3535
{translate key="publication.relation.published"}

0 commit comments

Comments
 (0)