SAFE_HTML(1) RSpade Manual SAFE_HTML(1) NAME safe_html - Sanitize HTML from WYSIWYG editors to prevent XSS attacks SYNOPSIS PHP: safe_html(string $html): string JS: safe_html(html_string) DESCRIPTION Filters potentially malicious HTML while preserving safe formatting tags. Use for all user-generated rich text content before display. Both PHP (HTMLPurifier) and JS (DOMPurify) implementations use matching allowed tags and attributes for consistent behavior. WHAT GETS STRIPPED -
Output:Hello
Input: click Output: click Input: