ePages 6.17.40 - DE_EPAGES/Test/API/TemplateUtil.pm

Package DE_EPAGES::Test::API::TemplateUtil

String manipulation functionality for removing TLEs and HTML tags

@EXPORT_OK
CleanContentForTesting
RemoveTLEComments
RemoveTLEsToIgnore

Functions

CleanContentForTesting
RemoveTLEComments
RemoveTLEsToIgnore

CleanContentForTesting

Cleans a string from disruptive TLEs and safe HTML tags. Fires RemoveTLEComments and RemoveTLEsToIgnore. For more details see the description of the respective methods.

Syntax
my $CleanedContent = CleanContentForTesting($DirtyContent);
Input
$Content (string)
HTML string which may contain TLEs
Return
$Content (string)
safe-for-testing version of the input string

RemoveTLEComments

Cleans a string from TLE comments.

Syntax
my $CleanedContent = RemoveTLEComments($DirtyContent);
Input
$Content (string)
HTML string which may contain TLE comments
Return
$Content (string)
cleaned input string without TLE comments

RemoveTLEsToIgnore

Cleans a string from all test-disruptive TLEs which are specified in the TLES_TO_IGNORE and TLES_TO_IGNORE_BY_REGEX constants.

Syntax
my $CleanedContent = RemoveTLEsToIgnore($DirtyContent);
Input
$Content (string)
HTML string which may contain disruptive TLEs
Return
$Content (string)
input string without disruptive TLEs