<?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[docxRaw helper]]></title><description><![CDATA[<p>Inspired by <a href="https://github.com/jsreport/jsreport/issues/713" rel="nofollow">https://github.com/jsreport/jsreport/issues/713</a>, here's a <code>docxRaw</code> helper that allows to insert raw dynamic content:</p>
<pre><code>function docxRaw(d) {
    return new Handlebars.SafeString(d)
}
</code></pre>
<p>Can then be used in docx template as:</p>
<pre><code>{{docxRaw mydata}}
</code></pre>
<p>With sample data:</p>
<pre><code>{ &quot;mydata&quot;: &quot;&lt;w:r&gt;&lt;w:rPr&gt;&lt;w:color w:val=\&quot;FF0000\&quot;/&gt;&lt;/w:rPr&gt;&lt;w:t&gt;Red&lt;/w:t&gt;&lt;/w:r&gt;&quot;}
</code></pre>
]]></description><link>https://forum.jsreport.net/topic/1790/docxraw-helper</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 11:55:35 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/1790.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Oct 2020 14:30:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to docxRaw helper on Invalid Date]]></title><description><![CDATA[<p>Inspired by <a href="https://github.com/jsreport/jsreport/issues/713" rel="nofollow">https://github.com/jsreport/jsreport/issues/713</a>, here's a <code>docxRaw</code> helper that allows to insert raw dynamic content:</p>
<pre><code>function docxRaw(d) {
    return new Handlebars.SafeString(d)
}
</code></pre>
<p>Can then be used in docx template as:</p>
<pre><code>{{docxRaw mydata}}
</code></pre>
<p>With sample data:</p>
<pre><code>{ &quot;mydata&quot;: &quot;&lt;w:r&gt;&lt;w:rPr&gt;&lt;w:color w:val=\&quot;FF0000\&quot;/&gt;&lt;/w:rPr&gt;&lt;w:t&gt;Red&lt;/w:t&gt;&lt;/w:r&gt;&quot;}
</code></pre>
]]></description><link>https://forum.jsreport.net/post/7984</link><guid isPermaLink="true">https://forum.jsreport.net/post/7984</guid><dc:creator><![CDATA[pdecat]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to docxRaw helper on Invalid Date]]></title><description><![CDATA[<p>Thank you for sharing.<br />
Maybe just <code>{{{myData}}}</code> would work for you the same? The triple brackets avoid escaping in the Handlebars templating engine.</p>
]]></description><link>https://forum.jsreport.net/post/7987</link><guid isPermaLink="true">https://forum.jsreport.net/post/7987</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to docxRaw helper on Invalid Date]]></title><description><![CDATA[<p>Indeed, it does work the same :facepalm:. Thanks!</p>
]]></description><link>https://forum.jsreport.net/post/7990</link><guid isPermaLink="true">https://forum.jsreport.net/post/7990</guid><dc:creator><![CDATA[pdecat]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to docxRaw helper on Invalid Date]]></title><description><![CDATA[<p>Turns out this way of doing is not compatible with every docx editor, e.g. Word Online displays a broken table and Libreoffice drops the &lt;w:r&gt; tag altogether as it is in a &lt;w:t&gt;.</p>
<p>I've submitted a PR to try and implement an real docxRaw helper: <a href="https://github.com/jsreport/jsreport-docx/pull/23" rel="nofollow">https://github.com/jsreport/jsreport-docx/pull/23</a></p>
<p>Feedback welcome :)</p>
]]></description><link>https://forum.jsreport.net/post/7996</link><guid isPermaLink="true">https://forum.jsreport.net/post/7996</guid><dc:creator><![CDATA[pdecat]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>