Hello!
I spend days to achieve this, and I did not manage to success..
I have a PHP script that renders a SVG code, (drawing a boiler). In browser everything is Ok.
In node-red I am using an httprequest to output the php result and the template_ui for displaing it in the dashboard.
So what is happening is this:
I'm trying to pass the SVG code trough msg.payload (from httprequest node )but it always escapes the html entities and the SVG code is not rendered by the browser, but instead it's showed as plain text.
Anyone knows how I could force NODERED to not escape HTML entities ?
HTML Entities ESCAPED
[code] <svg xmlns="SVG namespace" xmlns:xlink="XLink namespace" viewBox="50 0 180 240">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%">[/code]
HTML entities NOT ESCAPED
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="50 0 180 240"> <defs> <linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%"> <stop offset="0%" style="stop-color: #9FD805;stop-opacity:1"/> <stop offset="25%" style="stop-color: #9FD805;stop-opacity:1"/>
How can I resolve this?
Any help would be appreciated.
Thank you !
Adrian