mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
01_FHEMWEB.pm: correctly escape ' in styleData (Forum #102584)
git-svn-id: https://svn.fhem.de/fhem/trunk@19904 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3378295d19
commit
0aa9cf563b
@ -1154,7 +1154,7 @@ FW_dataAttr()
|
||||
my ($p, $default) = @_;
|
||||
my $val = AttrVal($FW_wname,$p, $default);
|
||||
$val =~ s/&/&/g;
|
||||
$val =~ s/'/"/g;
|
||||
$val =~ s/'/'/g;
|
||||
return "data-$p='$val' ";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user