Skip to main content

Module utils

Module utils 

Source
Expand description

Shared utility functions for HTML processing.

This module provides common utilities used across the library and bindings for HTML text escaping, attribute escaping, and void element detection.

Functionsยง

escape_attr
Escapes special characters for HTML attribute values.
escape_text
Escapes special characters for HTML text content.
is_void_element
Returns true if the element is a void element (no closing tag).