2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

Special character fix by Happy Fhem User

git-svn-id: https://svn.fhem.de/fhem/trunk@1104 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2011-11-13 11:19:41 +00:00
parent 0bcecbfd3b
commit 0291de6ea8

View File

@ -30,7 +30,7 @@ XmlEscape($)
$a =~ s/"/"/g;
$a =~ s/</&lt;/g;
$a =~ s/>/&gt;/g;
$a =~ s/([^ -~])/sprintf("#%02x;", ord($1))/ge;
$a =~ s/([^ -~])/sprintf("&#%02x;", ord($1))/ge;
return $a;
}