<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Convert HTML Column (with CSS) into Text Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756470#M238841</link>
    <description>&lt;P&gt;How about removing tags with this simple (but not fail proof) syntax?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data T;
  HTML='&amp;lt;a&amp;gt;sfdsfdsf&amp;lt;/a&amp;gt;sdsd';
  TEXT=prxchange('s/&amp;lt;[^&amp;gt;]*?&amp;gt;//',-1,HTML);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jul 2021 10:29:38 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-07-25T10:29:38Z</dc:date>
    <item>
      <title>Convert HTML Column (with CSS) into Text Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756461#M238833</link>
      <description>&lt;P&gt;I have SAS Data set with one of the column defined in HTML format. I have to convert this HTML Column into Text format. I have used Perl based HTML parsers, but it is not working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manishiiita_0-1627205939617.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61676i0119DB56EA514138/image-size/large?v=v2&amp;amp;px=999" role="button" title="manishiiita_0-1627205939617.png" alt="manishiiita_0-1627205939617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have French Alphabet characters in above comments (first line; â, ê, î, ô, û); and it should be available as actual French text characters (â, ê, î, ô, û) post conversion.&lt;/P&gt;&lt;P&gt;Is there any way to do it in SAS?&lt;/P&gt;&lt;P&gt;If not in SAS programming, is there any way to show it as a report as we are displaying above data into a Stored Process report?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 09:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756461#M238833</guid>
      <dc:creator>manishiiita</dc:creator>
      <dc:date>2021-07-25T09:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML Column (with CSS) into Text Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756464#M238836</link>
      <description>&lt;P&gt;So you want to remove html tags and just keep the text?&lt;/P&gt;
&lt;P&gt;Or do you want to reuse the html as is in a SAS generated report?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 10:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756464#M238836</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-25T10:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML Column (with CSS) into Text Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756465#M238837</link>
      <description>I want to keep only the text from it. I'm going to show actual text in report. So, no need to reuse html.</description>
      <pubDate>Sun, 25 Jul 2021 10:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756465#M238837</guid>
      <dc:creator>manishiiita</dc:creator>
      <dc:date>2021-07-25T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML Column (with CSS) into Text Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756470#M238841</link>
      <description>&lt;P&gt;How about removing tags with this simple (but not fail proof) syntax?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data T;
  HTML='&amp;lt;a&amp;gt;sfdsfdsf&amp;lt;/a&amp;gt;sdsd';
  TEXT=prxchange('s/&amp;lt;[^&amp;gt;]*?&amp;gt;//',-1,HTML);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 10:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756470#M238841</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-25T10:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML Column (with CSS) into Text Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756471#M238842</link>
      <description>&lt;P&gt;For the accents, you have to do that manually, for example using function &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n101a8jch5trh0n1bc5neq48hc89.htm" target="_self"&gt;TRANSTRN&lt;/A&gt; as function &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p05qscijn2kj30n1ofetqnn8abob.htm" target="_self"&gt;URLDECODE&lt;/A&gt; is rather limited. Unfinished even.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 10:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756471#M238842</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-25T10:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert HTML Column (with CSS) into Text Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756480#M238848</link>
      <description>Post some sample data and the output you want see, that would be better to explain your question.</description>
      <pubDate>Sun, 25 Jul 2021 11:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-HTML-Column-with-CSS-into-Text-Format/m-p/756480#M238848</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-07-25T11:17:30Z</dc:date>
    </item>
  </channel>
</rss>

