Skip to content

Commit

Permalink
pkp/pkp-lib#9717 Export stripUnsafeHtml for import use in load.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Feb 16, 2025
1 parent 15fa41b commit 1ada646
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/directives/stripUnsafeHtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const sanitizeConfig = {
USE_PROFILES: {html: true},
};

export default {
export const stripUnsafeHtml = {
// Called only once, when the directive is first bound to the element.
// This is where you can do one-time setup work.
mounted(el, binding) {
Expand All @@ -23,3 +23,5 @@ export default {
}
},
};

export default stripUnsafeHtml;

0 comments on commit 1ada646

Please sign in to comment.