<?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>fn!extract does not like letter p??</title><link>https://community.appian.com/discussions/f/general/38604/fn-extract-does-not-like-letter-p</link><description>Hi All, 
 For any reason I can&amp;#39;t imagine, if you run this instruction in a rule; 
 fn!extract(&amp;quot;&amp;lt;a&amp;gt;some text&amp;lt;/a&amp;gt;&amp;quot;,&amp;quot;&amp;lt;a&amp;gt;&amp;quot;,&amp;quot;&amp;lt;/a&amp;gt;&amp;quot;) 
 you will get {&amp;quot;some text&amp;quot;} as a result, which is what I expected. 
 But if you run this one 
 fn!extract(&amp;quot;&amp;lt;p&amp;gt;some text&amp;lt;/p</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: fn!extract does not like letter p??</title><link>https://community.appian.com/thread/145815?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 18:23:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26998b9c-69ca-4707-aab0-a8804d5f1fb8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I just realized - this article gets it slightly wrong.&amp;nbsp; It&amp;#39;s not that Appian is failing to parse the extract per se - it&amp;#39;s that the entire string is being stripped of certain HTML tags (presumably) immediately, before the &amp;quot;extract&amp;quot; operation is even attempted, and then the result of the &amp;quot;extract&amp;quot; works or fails depending on what&amp;#39;s left after the HTML tags in question are removed.&lt;/p&gt;
&lt;p&gt;For example: &lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1740767028122v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fn!extract does not like letter p??</title><link>https://community.appian.com/thread/145814?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 18:17:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:568cfb38-0245-4f1f-8f4c-7991f151cf89</guid><dc:creator>Luis Ripoll Morales</dc:creator><description>&lt;p&gt;Thank you Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fn!extract does not like letter p??</title><link>https://community.appian.com/thread/145810?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 16:45:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a6d9c94-606e-4e5b-854e-754b7fe8471e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;we would at the very least expect text handling functions to handle all text without bias even if that text contains valid HTML tags.&lt;/p&gt;
&lt;p&gt;I also confirmed this behavior in 24.4, and confirmed that the exact same code (but with the letter in question replaced to make it not a valid HTML tag) un-breaks it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fn!extract does not like letter p??</title><link>https://community.appian.com/thread/145808?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 16:08:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a84b5839-dff5-42bf-a58d-101c90cc3a91</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This is a known issue. Find the knowledge base item here:&amp;nbsp;&lt;a href="https://community.appian.com/support/w/kb/765/kb-1489-the-extract-function-is-unable-to-handle-html-line-breaks"&gt;community.appian.com/.../kb-1489-the-extract-function-is-unable-to-handle-html-line-breaks&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fn!extract does not like letter p??</title><link>https://community.appian.com/thread/145771?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 07:48:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:133a8609-acae-45b7-a67c-372e859a5555</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That&amp;#39;s the question only Appian can answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fn!extract does not like letter p??</title><link>https://community.appian.com/thread/145770?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 07:47:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bce85222-23a9-4473-b700-f3f87a7ca856</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;So is there any special conditions that Appian would not parse &amp;lt;p&amp;gt; tags ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fn!extract does not like letter p??</title><link>https://community.appian.com/thread/145769?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 07:41:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f842861-f821-4a0b-b90c-ca7ec82ae3cf</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I can replicate this on 24.4. I suggest to open a support case to discuss this with Appian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fn!extract does not like letter p??</title><link>https://community.appian.com/thread/145758?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 05:37:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dd2fccfd-cc6d-4535-a8e6-88e4dcaeb0e5</guid><dc:creator>Luis Ripoll Morales</dc:creator><description>&lt;p&gt;Thank you for your answer Abishek, however I do not looking forward some workaround (I&amp;#39;ve already solved my need with regex). My intention when posting that is to know why fn!extract is working like this. &amp;iquest;It is a bug or some weird undocumented behaviour?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: fn!extract does not like letter p??</title><link>https://community.appian.com/thread/145757?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 05:28:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad7fa309-2257-474f-97f8-bfdfdf2769d9</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;i think in this scenario, striphtml() might work?&amp;nbsp; since&amp;nbsp;&amp;nbsp;&lt;span&gt;striphtml()&amp;nbsp;&lt;/span&gt;&lt;span&gt;Converts an HTML string into plain Text by converting &amp;lt;br&amp;gt;, &amp;lt;p&amp;gt;, and &amp;lt;div&amp;gt; to line breaks, stripping all other tags, and converting escaped characters into their display values&lt;/span&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;striphtml(&amp;quot;&amp;lt;p&amp;gt;some text&amp;lt;/p&amp;gt;&amp;quot;)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>