mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
01_FHEMWEB.pm: accept readings enclosed in <html> as HTML (Forum #58320)
git-svn-id: https://svn.fhem.de/fhem/trunk@12232 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
343c541b24
commit
2ab58e7383
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- feature: 01_FHEMWEB/Reading: accept Readings in <html> (Forum #58320)
|
||||
- bugfix: 95_Dashboard: fixes an issue causing devices with interal attribute
|
||||
group to not appear in the dashboard.
|
||||
- bugfix: 93_DbRep: include day before and next in calculation if Timestamp
|
||||
|
@ -1080,7 +1080,12 @@ FW_makeTable($$$@)
|
||||
|
||||
if(ref($val)) { #handle readings
|
||||
my ($v, $t) = ($val->{VAL}, $val->{TIME});
|
||||
if($v =~ m,^<html>(.*)</html>$,) {
|
||||
$v = $1;
|
||||
} else {
|
||||
$v = FW_htmlEscape($v);
|
||||
}
|
||||
|
||||
if($FW_ss) {
|
||||
$t = ($t ? "<br><div class=\"tiny\">$t</div>" : "");
|
||||
FW_pO "<td><div class=\"dval\">$v$t</div></td>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user