<?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>Extract function and line break</title><link>https://community.appian.com/discussions/f/data/18313/extract-function-and-line-break</link><description>Problem Statement: I am trying to extract a list of string from an html content using the extract function and a combination of striphtml() and substitute(). The list of string contains a couple of line breaks but the extract function is stripping the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Extract function and line break</title><link>https://community.appian.com/thread/84445?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 06:59:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c83475fd-d2f0-4fb1-96e8-af2fa9e6ab10</guid><dc:creator>Bejjenki_Rajender</dc:creator><description>&lt;p&gt;substitute( &amp;quot;hi hellow&amp;nbsp; &amp;nbsp;one&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;great day&amp;quot;,char(10),&amp;quot;&amp;lt;br&amp;gt;&amp;quot;)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;substitute( pv!emailBody,char(10),&amp;quot;&amp;lt;br&amp;gt;&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extract function and line break</title><link>https://community.appian.com/thread/72092?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 23:26:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e5c75c0-04e6-414b-93b4-3b878ae6870e</guid><dc:creator>ankitab0001</dc:creator><description>&lt;p&gt;I figured out the solution. So I substituted the line break with a special character before extracting and then substituted again with char(13) after extracting&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;substitute(
substitute(
  extract(
    striphtml(
      substitute(
        substitute(
          substitute(
            pv!htmlBody,
            &amp;quot;&amp;lt;p class=MsoPlainText&amp;gt;&amp;quot;,
            &amp;quot;[&amp;quot;
          ),
          &amp;quot;&amp;lt;/p&amp;gt;&amp;quot;,
          &amp;quot;]&amp;quot;
        ),
        &amp;quot;&amp;lt;br&amp;gt;&amp;quot;,
        &amp;quot;##&amp;quot;
      )
    ),
    trim(
      &amp;quot;Additional Comments:&amp;quot;
    ),
    trim(
      &amp;quot;Your Workgroup&amp;quot;
    )
  ),
  &amp;quot;][&amp;quot;,
  char(
    13
  )
),
&amp;quot;##&amp;quot;,
char(13)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extract function and line break</title><link>https://community.appian.com/thread/72091?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 22:08:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21c7e345-d182-44ab-abfe-90b88c5af5c9</guid><dc:creator>ankitab0001</dc:creator><description>&lt;p&gt;I used both.. char(10) and char(13). Didn&amp;#39;t work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extract function and line break</title><link>https://community.appian.com/thread/72076?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 10:30:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4fdf136-60cf-4911-8ca2-3efbd99b7888</guid><dc:creator>ManuelHTG</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/ankitab0001"&gt;ankitab0001&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you provide a html example?&lt;/p&gt;
&lt;p&gt;Anyways, I think you might need to use char(10) -&lt;span style="font-family:Arial;font-size:small;"&gt;line feed&lt;/span&gt;- instead of char(13) -&lt;span style="font-family:Arial;font-size:small;"&gt;carriage return&lt;/span&gt;-&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Manuel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>