mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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:
parent
951e4be031
commit
b3eac7267e
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user