File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ window.url = function (path = '') {
2424}
2525
2626window . stripHtmlTags = function ( html , safeTags = [ 'mark' ] ) {
27- safeTags = safeTags . map ( ( tag ) => tag . replace ( / [ ^ a - z A - Z 0 - 9 - ] / g, '' ) ) . filter ( Boolean ) ;
27+ safeTags = safeTags . map ( ( tag ) => tag . replace ( / [ ^ a - z A - Z 0 - 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
3131window . 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}
You can’t perform that action at this time.
0 commit comments