Skip to content

Commit 1e76efa

Browse files
indykoningactions-user
authored andcommitted
Apply fixes from Prettier
1 parent 3a4e4fe commit 1e76efa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/filters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ window.url = function (path = '') {
2424
}
2525

2626
window.stripHtmlTags = function (html, safeTags = ['mark']) {
27-
safeTags = safeTags.map((tag) => tag.replace(/[^a-zA-Z0-9-]/g, '')).filter(Boolean);
27+
safeTags = safeTags.map((tag) => tag.replace(/[^a-zA-Z0-9-]/g, '')).filter(Boolean)
2828
return html.replace(new RegExp('<(?!/?(?:' + safeTags.join('|') + ')>)(?:.|\n)*?>', 'gm'), '') // Safe tags are only allowed if they have NO attributes
2929
}
3030

3131
window.htmlDecode = function (input) {
32-
return new DOMParser().parseFromString(input, "text/html")?.documentElement?.textContent ?? input;
32+
return new DOMParser().parseFromString(input, 'text/html')?.documentElement?.textContent ?? input
3333
}

0 commit comments

Comments
 (0)