<?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: TextBox Markup Get Plain Text in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/TextBox-Markup-Get-Plain-Text/m-p/527944#M75174</link>
    <description>&lt;P&gt;Only some sort of Regex comes to my mind, but the pattern might get annoying to build&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
win = New Window( "Example", fontobj = text = Text Box( "Example Text" ) );
text &amp;lt;&amp;lt; setText(
	"This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;i&amp;gt;italic&amp;lt;/i&amp;gt; text. This is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text. 
This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;bold, italic, underlined&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text.
Text using a &amp;lt;font face='Vivaldi'&amp;gt;different&amp;lt;/font&amp;gt; font face.
Text using a &amp;lt;font size='16'&amp;gt;different&amp;lt;/font&amp;gt; font size.
This is &amp;lt;font color='Blue'&amp;gt;blue&amp;lt;/font&amp;gt; text. This is a &amp;lt;background color='yellow'&amp;gt;yellow&amp;lt;/background&amp;gt; background. This is &amp;lt;font color='#0000ff'&amp;gt;&amp;lt;background color='0xffff00'&amp;gt;blue text on a yellow background&amp;lt;/background&amp;gt;&amp;lt;/font&amp;gt;."
);
text &amp;lt;&amp;lt; markup;
Regex(text &amp;lt;&amp;lt; get text, "(&amp;lt;/?.*?&amp;gt;)", "", GLOBALREPLACE);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Jul 2022 05:05:46 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-07-29T05:05:46Z</dc:date>
    <item>
      <title>TextBox Markup Get Plain Text</title>
      <link>https://community.jmp.com/t5/Discussions/TextBox-Markup-Get-Plain-Text/m-p/527905#M75167</link>
      <description>&lt;P&gt;Does anyone know of a way to get the plain-text of a TextBox that has markup text applied?&amp;nbsp; For instance, in the below example I'd like to get the text "This is bold text. This is italic text. This is underlined text. This is bold, italic, underlined text." from the box (without the markup directives).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a system that creates logs at the bottom of some apps that supports markup (for bold and red font mostly), but I'd like to be able to save the log to a file occasionally and not have it have the markup directives.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
win = New Window( "Example", fontobj = text = Text Box( "Example Text" ) );
text &amp;lt;&amp;lt; setText(
	"This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;i&amp;gt;italic&amp;lt;/i&amp;gt; text. This is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text. This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;bold, italic, underlined&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text."
);
text &amp;lt;&amp;lt; markup;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:05:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/TextBox-Markup-Get-Plain-Text/m-p/527905#M75167</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2023-06-09T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: TextBox Markup Get Plain Text</title>
      <link>https://community.jmp.com/t5/Discussions/TextBox-Markup-Get-Plain-Text/m-p/527944#M75174</link>
      <description>&lt;P&gt;Only some sort of Regex comes to my mind, but the pattern might get annoying to build&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
win = New Window( "Example", fontobj = text = Text Box( "Example Text" ) );
text &amp;lt;&amp;lt; setText(
	"This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;i&amp;gt;italic&amp;lt;/i&amp;gt; text. This is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text. 
This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;bold, italic, underlined&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text.
Text using a &amp;lt;font face='Vivaldi'&amp;gt;different&amp;lt;/font&amp;gt; font face.
Text using a &amp;lt;font size='16'&amp;gt;different&amp;lt;/font&amp;gt; font size.
This is &amp;lt;font color='Blue'&amp;gt;blue&amp;lt;/font&amp;gt; text. This is a &amp;lt;background color='yellow'&amp;gt;yellow&amp;lt;/background&amp;gt; background. This is &amp;lt;font color='#0000ff'&amp;gt;&amp;lt;background color='0xffff00'&amp;gt;blue text on a yellow background&amp;lt;/background&amp;gt;&amp;lt;/font&amp;gt;."
);
text &amp;lt;&amp;lt; markup;
Regex(text &amp;lt;&amp;lt; get text, "(&amp;lt;/?.*?&amp;gt;)", "", GLOBALREPLACE);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jul 2022 05:05:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/TextBox-Markup-Get-Plain-Text/m-p/527944#M75174</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-29T05:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: TextBox Markup Get Plain Text</title>
      <link>https://community.jmp.com/t5/Discussions/TextBox-Markup-Get-Plain-Text/m-p/528259#M75197</link>
      <description>&lt;P&gt;Awesome idea!&amp;nbsp; It hadn't occurred to me to use regex, but that is pretty slick.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 17:36:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/TextBox-Markup-Get-Plain-Text/m-p/528259#M75197</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-07-29T17:36:54Z</dc:date>
    </item>
  </channel>
</rss>

