2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

fhemweb.js: do not add <pre> to HTML stuff (Forum #87372)

git-svn-id: https://svn.fhem.de/fhem/trunk@16678 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-04-29 22:42:09 +00:00
parent 951e4be031
commit b3eac7267e

View File

@ -998,7 +998,7 @@ FW_doUpdate(evt)
this.setValueFn(d[1].replace(/\n/g, '\u2424'));
} else {
if(d[2].match(/\n/))
if(d[2].match(/\n/) && !d[2].match(/<.*>/)) // format multiline
d[2] = '<html><pre>'+d[2]+'</pre></html>';
var ma = /^<html>([\s\S]*)<\/html>$/.exec(d[2]);