Sympa::HTMLSanitizer - Sanitize HTML contents
Contents
Description
TBD.
Methods
new ( $robot )
Constructor. Creates a new Sympa::HTMLSanitizer instance.
Parameter:
$robot
Robot context to determine allowed URL prefix.
Returns:
New Sympa::HTMLSanitizer instance.
sanitize_html ( $html )
Instancemethod. Returns sanitized version of HTML source.
Parameter:
$html
HTML source.
Returns:
Sanitized source.
sanitize_html_file ( $file )
Instancemethod. Returns sanitized version of HTML source in the file.
Parameter:
$file
HTML file.
Returns:
Sanitized source.
sanitize_var ( $var, [ options... ] )
Instancemethod. Sanitize all items in hashref or arrayref recursively.
TBD.
History
TBD.
6.2.76 2025-02-12 Sympa::HTMLSanitizer(3Sympa)
Name
Sympa::HTMLSanitizer - Sanitize HTML contents
Synopsis
$hss = Sympa::HTMLSanitizer->new;
$sanitized = $hss->sanitize_html($html);
$sanitized = $hss->sanitize_html_file($file);
$hss->sanitize_var($variable);
