diff --git a/webtools/tinderbox3/scripts/Tinderbox3/Util.pm b/webtools/tinderbox3/scripts/Tinderbox3/Util.pm new file mode 100644 index 000000000000..b570363262fe --- /dev/null +++ b/webtools/tinderbox3/scripts/Tinderbox3/Util.pm @@ -0,0 +1,34 @@ +package Tinderbox3::Util; + +use strict; + +require Exporter; +our @ISA = qw(Exporter); +our @EXPORT = qw(escape_html escape_js escape_url); + +sub escape_html { + my ($str) = @_; + $str =~ s/>/>/g; + $str =~ s//>/g; + $str =~ s/