@bnidev/js-utils
Preparing search index...
sanitizeHtml
Function sanitizeHtml
sanitizeHtml
(
dirtyHtml
:
string
,
allowedTags
?:
string
[]
,
allowedAttributes
?:
Record
<
string
,
string
[]
>
,
)
:
string
Parameters
dirtyHtml
:
string
allowedTags
:
string
[]
= DEFAULT_ALLOWED_TAGS
allowedAttributes
:
Record
<
string
,
string
[]
>
= DEFAULT_ALLOWED_ATTRIBUTES
Returns
string
Settings
Theme
OS
Light
Dark
@bnidev/js-utils
Loading...