ePages 7.27.0 - DE_EPAGES/Core/API/Html.pm

Package DE_EPAGES::Core::API::Html

Methods for handling HTML tags

@EXPORT_OK
RemoveHtmlTags
RemoveScriptTags
RemoveSuspiciousChars

Functions

RemoveHtmlTags
RemoveScriptTags
RemoveSuspiciousChars

RemoveHtmlTags

Removes all html tags and consolidates spaces.

Syntax
my $NoHtml = RemoveHtmlTags($HTML);
Input
$HTML (string)
html string
Return
$NoHtml (string)
string without html tags

RemoveScriptTags

Removes all script html tags

Syntax
my $$NoScriptTagHtml = RemoveScriptTags($HTML);
Input
$HTML (string)
html string
Return
$NoScriptTagHTML (string)
string without script html tags

RemoveSuspiciousChars

Removes all encodings for <and>

Syntax
my $SaveString = RemoveSuspiciousChars($StringWithHTML);
Input
$StringWithHTML (string)
string
Return
$SaveString (string)
string without suspicious chars