Good, but after a change met my needs better..

I added stripping the HTML:

in the use section:

use HTML::FormatText;

my @output_lines = split(/
/, $content);
# print “CONTENT ERROR: EXPR NOT FOUND (last: $output_lines[$#output_lines])
full output was:
$content”;
my $text = HTML::FormatText->format_from_string($content);
print “CONTENT ERROR: EXPR NOT FOUND:
“;
print “$text
“;
$status = EXIT_CRITICAL;

With this change I found it more useful output for my client.