Skip to main content

Module utils

Module utils 

Source
Expand description

Shared string utilities for HTML escaping, slugification, and HTML stripping.

Functionsยง

html_escape
Escape HTML special characters.
slugify
Convert text to a URL-safe slug.
strip_html
Strip HTML tags from content, handling script/style blocks and HTML entities.