2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

98_SVG.pm: skip escape if title is enclosed in <html></html> (Forum #135755)

git-svn-id: https://svn.fhem.de/fhem/trunk@28159 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-11-14 12:59:18 +00:00
parent 05bc6a588c
commit 67de8f4257

View File

@ -1405,6 +1405,7 @@ sub
SVG_escape($)
{
my ($txt) = @_;
return $1 if($txt =~ m,^<html>(.*)</html>$,);
$txt =~ s/&/&amp;/g;
$txt =~ s/</&lt;/g;
$txt =~ s/>/&gt;/g;