DOKK / manpages / debian 12 / sympa / Sympa::HTMLSanitizer.3sympa.en
Sympa::HTMLSanitizer(3Sympa) sympa 6.2.70 Sympa::HTMLSanitizer(3Sympa)

Sympa::HTMLSanitizer - Sanitize HTML contents

  $hss = Sympa::HTMLSanitizer->new;
  $sanitized = $hss->sanitize_html($html);
  $sanitized = $hss->sanitize_html_file($file);
  $hss->sanitize_var($variable);

TBD.

Constructor. Creates a new Sympa::HTMLSanitizer instance.

Parameter:

$robot
Robot context to determine allowed URL prefix.

Returns:

New Sympa::HTMLSanitizer instance.

Instance method. Returns sanitized version of HTML source.

Parameter:

$html
HTML source.

Returns:

Sanitized source.

Instance method. Returns sanitized version of HTML source in the file.

Parameter:

$file
HTML file.

Returns:

Sanitized source.

Instance method. Sanitize all items in hashref or arrayref recursively.

TBD.

TBD.

2023-01-26 6.2.70