Special character fix by Happy Fhem User

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1104 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2011-11-13 11:19:41 +00:00
parent 4963f71bae
commit 7d214a1b44

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;
}