Module html

Source
Expand description

The module to process HTML in Tauri.

Structs§

NodeRef
A strong reference to a node.

Enums§

IsolationSide
Where the JavaScript is injected to
PatternObject
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.