<?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>Remove Data from HTML text</title><link>https://community.appian.com/discussions/f/general/30839/remove-data-from-html-text</link><description>Hi All, 
 Its very urgent. 
 I am facing an issue with removing &amp;lt;style&amp;gt;......&amp;lt;/style&amp;gt; from the HTML text. I want to remove all the text/special character/all the property between style tag. 
 &amp;lt;html&amp;gt;&amp;lt;head&amp;gt; &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Remove Data from HTML text</title><link>https://community.appian.com/thread/122847?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 15:29:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7eb7b07-62fa-4655-ac68-f4d4b7bae95b</guid><dc:creator>Vikram Singh</dc:creator><description>&lt;p&gt;It is working. Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remove Data from HTML text</title><link>https://community.appian.com/thread/122846?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 15:28:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f596bb97-9c38-4f2f-b25d-bc12e637e452</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What exactly do you mean with &amp;quot;Not worked&amp;quot; ?&lt;/p&gt;
&lt;p&gt;I see the following output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt; &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot;&amp;gt;&amp;lt;meta name=&amp;quot;Generator&amp;quot; content=&amp;quot;Microsoft Word 15 (filtered medium)&amp;quot;&amp;gt;&amp;lt;style&amp;gt;  &amp;lt;/style&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body  style=&amp;quot;word-wrap:break-word&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;WordSection1&amp;quot;&amp;gt;&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;Body of the email&amp;lt;/p&amp;gt;&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;#160;&amp;lt;/p&amp;gt;&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;lt;b&amp;gt;BOLD text&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;#160;&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;p class=&amp;quot;MsoNormal&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remove Data from HTML text</title><link>https://community.appian.com/thread/122843?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 14:53:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f161ff2-36f7-4c5d-9717-f0a5e1226b88</guid><dc:creator>Vikram Singh</dc:creator><description>&lt;p&gt;Not worked.&lt;/p&gt;
&lt;p&gt;This HTML Snippet is a response from 3rd Party we are converting in a PDF document. The above highlighted Snippet appears as text in the document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remove Data from HTML text</title><link>https://community.appian.com/thread/122831?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 13:53:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f98a4d92-ac74-46ed-b229-4814a228fbbf</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Then, just adapt the basic pattern to your needs.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;regexreplaceall(&amp;quot;&amp;lt;!--[\s\S]*?--&amp;gt;&amp;quot;, ri!html, &amp;quot;&amp;quot;)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;BTW, why are you doing this? Do you try to edit HTML in Word? If yes, it might be easier to do that in a real text editor like Notepad++.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remove Data from HTML text</title><link>https://community.appian.com/thread/122830?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 13:48:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2084441b-b733-415e-852e-9b1764822979</guid><dc:creator>Vikram Singh</dc:creator><description>&lt;p&gt;Not working...&lt;/p&gt;
&lt;p&gt;I want to remove comments added in HTML text as mention above.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;!-- @font-face {font-family:&amp;quot;Cambria Math&amp;quot;} @font-face {font-family:Calibri} p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:11.0pt; font-family:&amp;quot;Calibri&amp;quot;,sans-serif} span.EmailStyle17 {font-family:&amp;quot;Calibri&amp;quot;,sans-serif; color:windowtext} .MsoChpDefault {font-family:&amp;quot;Calibri&amp;quot;,sans-serif} @page WordSection1 {margin:72.0pt 72.0pt 72.0pt 72.0pt} div.WordSection1 {} --&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remove Data from HTML text</title><link>https://community.appian.com/thread/122828?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 13:44:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:263cb86c-ef8e-43b8-bbec-af488ead1ea5</guid><dc:creator>Vikram Singh</dc:creator><description>&lt;p&gt;Not Yet, Let me try that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remove Data from HTML text</title><link>https://community.appian.com/thread/122827?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 13:42:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:316234c9-7021-4374-bdb2-4e784c20acbe</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you try to use a regular expression? The following pattern removes the style section:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;regexreplaceall(&amp;quot;&amp;lt;style&amp;gt;[\s\S]*?&amp;lt;/style&amp;gt;&amp;quot;, ri!html, &amp;quot;&amp;quot;)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>