sanitize
Updated on August 22, 2024Source codeTests
createSanitize
is a pipe that transforms an HTML string to a sanitized HTML string.
Create sanitize
Call createSanitize
with these parameters to create your sanitize
function:
Parameter
Type
Required
Description
options
Object
no
Options to customize the behavior of the
sanitize
function. See the Options section for more guidance.Options
In its options
parameter, createSanitize
accepts all configuration options for DOMPurify
.