From 2ab58e738324399c5c906644af9cd714dc910bba Mon Sep 17 00:00:00 2001
From: rudolfkoenig <>
Date: Sat, 1 Oct 2016 18:04:08 +0000
Subject: [PATCH] 01_FHEMWEB.pm: accept readings enclosed in as HTML
(Forum #58320)
git-svn-id: https://svn.fhem.de/fhem/trunk@12232 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/CHANGED | 1 +
fhem/FHEM/01_FHEMWEB.pm | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/fhem/CHANGED b/fhem/CHANGED
index e07bc1fbb..98ea56d41 100644
--- a/fhem/CHANGED
+++ b/fhem/CHANGED
@@ -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 (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
diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm
index 7561bda23..8efd000b8 100755
--- a/fhem/FHEM/01_FHEMWEB.pm
+++ b/fhem/FHEM/01_FHEMWEB.pm
@@ -1080,7 +1080,12 @@ FW_makeTable($$$@)
if(ref($val)) { #handle readings
my ($v, $t) = ($val->{VAL}, $val->{TIME});
- $v = FW_htmlEscape($v);
+ if($v =~ m,^(.*)$,) {
+ $v = $1;
+ } else {
+ $v = FW_htmlEscape($v);
+ }
+
if($FW_ss) {
$t = ($t ? "