Module sanitize

Module sanitize 

Source
Expand description

HTML sanitization utilities

This module provides functions for sanitizing HTML content to prevent XSS attacks while preserving safe formatting.

Functionsยง

decode_entities
Decode HTML entities to Unicode characters
sanitize_and_decode
Sanitize and decode HTML content
sanitize_html
Sanitize HTML content, removing dangerous tags and attributes
strip_tags
Strip all HTML tags, leaving only text content