<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data handling in docx from dynamic template</title><link>https://community.appian.com/discussions/f/general/18146/data-handling-in-docx-from-dynamic-template</link><description>Hi All, 
 How to handle the &amp;#39;&amp;amp;&amp;#39; in data, while using the docx from dynamic template. 
 I am already using the toHtml() and expression rule for escaping xml characters but after that also &amp;#39;&amp;amp;&amp;#39; is converting into &amp;#39;&amp;amp;amp;&amp;#39; 
 and 
 if I don&amp;#39;t use toHtml() and</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Data handling in docx from dynamic template</title><link>https://community.appian.com/thread/140397?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 12:55:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfcecd54-a0f5-43a7-bc51-fab4d9e69a83</guid><dc:creator>venkatb0003</dc:creator><description>&lt;p&gt;reduce(&lt;br /&gt; substitute(_, _, _),&lt;br /&gt; ri!text,&lt;br /&gt; merge(&lt;br /&gt; { &amp;quot;&amp;amp;&amp;quot;, &amp;quot;&amp;lt;&amp;quot;, &amp;quot;&amp;gt;&amp;quot;, &amp;quot;&amp;quot;&amp;quot;&amp;quot;, &amp;quot;&amp;#39;&amp;quot; },&lt;br /&gt; {&lt;br /&gt; &amp;quot;&amp;amp;amp;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;amp;lt;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;amp;gt;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;amp;quot;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;amp;apos;&amp;quot;&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt;),&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1725886551316v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data handling in docx from dynamic template</title><link>https://community.appian.com/thread/71864?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 06:34:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:866fd943-a4c7-40f4-ad5b-e04acab6c73d</guid><dc:creator>Harsh Kumar Agarwal</dc:creator><description>&lt;p&gt;Try creating an expression rule with following definition keeping &amp;quot;ri!value&amp;quot; as text input and pass your XML in this rule before calling the smart service:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;trim(&lt;br /&gt; reduce(&lt;br /&gt; fn!substitute,&lt;br /&gt; ri!value,&lt;br /&gt; merge(&lt;br /&gt; {&lt;br /&gt; &amp;quot;&amp;amp;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;lt;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;gt;&amp;quot;,&lt;br /&gt; char(&lt;br /&gt; 34&lt;br /&gt; ),&lt;br /&gt; char(&lt;br /&gt; 39&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; {&lt;br /&gt; &amp;quot;&amp;amp;amp;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;amp;lt;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;amp;gt;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;amp;quot;&amp;quot;,&lt;br /&gt; &amp;quot;&amp;amp;apos;&amp;quot;&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data handling in docx from dynamic template</title><link>https://community.appian.com/thread/71835?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 16:40:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48c03962-a615-460d-9ac8-46c3e90a26a0</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What is the code for your &amp;quot;expression rule for escaping xml characters&amp;quot;?&amp;nbsp; toHtml() already converts &amp;quot;&amp;amp;&amp;quot; to &amp;quot;&amp;amp;amp;&amp;quot;, and if your expression rule does the same thing (which is my guess), you&amp;#39;re probably ending up with &amp;quot;&lt;strong&gt;&amp;amp;amp;amp;&lt;/strong&gt;&amp;quot; which would render in your resulting Word file as literally &amp;quot;&amp;amp;amp;&amp;quot; when you don&amp;#39;t intend it to.&lt;/p&gt;
&lt;p&gt;My overall recommendation would be to make sure the expression rule handles all text correctly, and get rid of toHtml() -- however one way or the other, you might need to make sure you&amp;#39;re not doing things twice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data handling in docx from dynamic template</title><link>https://community.appian.com/thread/71803?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2020 11:32:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d1a573e7-d299-40f8-ac8f-3865d0c508e6</guid><dc:creator>Parth Gupta</dc:creator><description>&lt;p&gt;&lt;span class="user-name"&gt;&lt;a class="internal-link view-user-profile" href="/members/anupriyak0002"&gt;anupriyak0002&lt;/a&gt;&amp;nbsp;-&amp;nbsp;You can try to replace &amp;quot;&amp;amp;&amp;quot; to &amp;quot;&lt;/span&gt;&amp;amp;amp;&amp;quot; in the XML.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>