Expand description
The module to process HTML in Tauri.
Structs§
- NodeRef
- A strong reference to a node.
Enums§
- Isolation
Side - Where the JavaScript is injected to
- Pattern
Object - The shape of the JavaScript Pattern config
Constants§
- SCRIPT_
NONCE_ TOKEN - The token used for script nonces.
- STYLE_
NONCE_ TOKEN - The token used for style nonces.
Functions§
- inject_
csp - Injects a content security policy to the HTML.
- inject_
nonce_ token - Inject nonce tokens to all scripts and styles.
- inline_
isolation - Temporary workaround for Windows not allowing requests
- parse
- Parses the given HTML string.
- serialize_
node - Serializes the node to HTML.