mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Avoid print <> symbols as html tags in snapshot viewer
This commit is contained in:
parent
596ad9dd2f
commit
a3b7eac666
@ -72,6 +72,8 @@ $label = get_parameter ("label");
|
||||
echo '<img src="' . $datos . '" alt="image"/>';
|
||||
}
|
||||
else {
|
||||
$datos = preg_replace ('/</', '<', $datos);
|
||||
$datos = preg_replace ('/>/', '>', $datos);
|
||||
$datos = preg_replace ('/\n/i','<br>',$datos);
|
||||
$datos = preg_replace ('/\s/i',' ',$datos);
|
||||
echo "<div id='result_div' style='width: 100%; height: 100%; overflow: scroll; padding: 10px; font-size: 14px; line-height: 16px; font-family: mono,monospace; text-align: left'>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user