JsxConfig
Properties
jsonAttributes
jsonAttributes:
Set ↗️
<string
>
When these attributes' values are set to object literals, they will be stringified to JSON.
Source
sanitize
sanitize:
Sanitizer
The sanitizer to be used by the runtime.
Accepts a function of the signature (raw: string, originalType: string) => string
.
Note
JsxConfig.trusted must be false for elements to be sanitized.
See
Source
trusted
trusted:
boolean
If false, value interpolations inside of JSX will be sanitized.
Note
Sanitization will change the return type of JSX functions to an object that overrides toString
.
In most cases it will function as expected, but you might sometimes need to manually coerce the JSX tree to a string.