
Backend/Func/CleanHTML.pm - Remove special HTML chars
This function, given a HTML string, replaces special characters with HTML-friendly ones, ensuring that user input is not interpreted by the browser as HTML, but rather, displayed.
my $string = $self->CleanHTML($html_string);
Example
my $cont = "<b>Bold <i>Italic <u>Underlined</u></i></b>";
$ret .= $self->CleanHTML($cont);
|