<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Return svg in HTML component]]></title><description><![CDATA[<p dir="auto">Say I have some .js in <em>WebContent/resources</em>. Now this code can generate svg via Raphael.js and also return it as a string. Now I thought of doing</p>
<pre><code>&lt;script type="text/javascript"&gt;someFunction(someArg)&lt;/script&gt;
</code></pre>
<p dir="auto">where the `someFunction' returns the "&lt;svg&gt;...&lt;/svg&gt;" string. This naive approach does not work. What is needed so that the HTML component div has the svg as a child? Am I missing something?</p>
<p dir="auto">Best Regards,<br />
moinmoin</p>
]]></description><link>https://forum.mango-os.com/topic/1418/return-svg-in-html-component</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 23:02:06 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1418.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Oct 2013 17:13:56 GMT</pubDate><ttl>60</ttl></channel></rss>