fix: 📦 make it build !
Some checks failed
repod / xml (push) Successful in 13s
repod / php (push) Successful in 58s
repod / nodejs (push) Failing after 48s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-08-09 09:52:56 +00:00
parent 75da02e05b
commit b4ccd98f77
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -9,5 +9,6 @@
/node_modules/
/js/
/css/
/build/

View File

@ -11,6 +11,7 @@
"stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css",
"stylelint:fix": "stylelint src/**/*.vue src/**/*.scss src/**/*.css --fix"
},
"type": "module",
"browserslist": [
"extends @nextcloud/browserslist-config"
],

View File

@ -3,15 +3,15 @@
</template>
<script>
import dompurify from 'dompurify'
import linkifyHtml from 'linkify-html'
import { sanitize } from 'dompurify'
export default {
name: 'SafeHtml',
directives: {
sanitize: {
inserted(el, binding) {
el.innerHTML = sanitize(
el.innerHTML = dompurify.sanitize(
linkifyHtml(binding.value, {
nl2br: true,
target: '_blank',