<?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 JSL: How to correctly display ampersand (&amp;amp;) in Textbox() with Markup? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-How-to-correctly-display-ampersand-amp-in-Textbox-with/m-p/881445#M104557</link>
    <description>&lt;P&gt;Hello fellow JSL scripters,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm trying to use an ampersand in a Text Box() call while also using the &amp;lt;&amp;lt;Markup command, and I'm coming across some issues. Apparently, the &amp;lt;&amp;lt;Markup send command formats text with specified HTML tags.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; As an example, here's some JSL that I thought&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; work, but doesn't.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;w = New Window( "Formatted Text",
	Text Box( "This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;bold italic&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text, &amp;amp; this is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text.",
	&amp;lt;&amp;lt;Markup) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Instead, I get this as the output and an error in the log:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_1-1750860547690.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77340iCA927615DAEF149C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_1-1750860547690.png" alt="SDF1_1-1750860547690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Warning: unterminated entity "&amp;amp;" encountered. -- Turning off markup flag -- This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;bold italic&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text &amp;amp; is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text.&lt;BR /&gt;DisplayBox[EvalContextBox]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I would have thought this would be easy to find a solution to, but JMP Help, Scripting Index, Scripting Guide, and searches don't really talk about this specific issue. I did try the HTML tag &amp;amp;amp, and it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help!,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 14:12:13 GMT</pubDate>
    <dc:creator>SDF1</dc:creator>
    <dc:date>2025-06-25T14:12:13Z</dc:date>
    <item>
      <title>JSL: How to correctly display ampersand (&amp;) in Textbox() with Markup?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-correctly-display-ampersand-amp-in-Textbox-with/m-p/881445#M104557</link>
      <description>&lt;P&gt;Hello fellow JSL scripters,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm trying to use an ampersand in a Text Box() call while also using the &amp;lt;&amp;lt;Markup command, and I'm coming across some issues. Apparently, the &amp;lt;&amp;lt;Markup send command formats text with specified HTML tags.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; As an example, here's some JSL that I thought&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; work, but doesn't.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;w = New Window( "Formatted Text",
	Text Box( "This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;bold italic&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text, &amp;amp; this is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text.",
	&amp;lt;&amp;lt;Markup) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Instead, I get this as the output and an error in the log:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_1-1750860547690.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77340iCA927615DAEF149C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_1-1750860547690.png" alt="SDF1_1-1750860547690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Warning: unterminated entity "&amp;amp;" encountered. -- Turning off markup flag -- This is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt; text. This is &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;bold italic&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; text &amp;amp; is &amp;lt;u&amp;gt;underlined&amp;lt;/u&amp;gt; text.&lt;BR /&gt;DisplayBox[EvalContextBox]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I would have thought this would be easy to find a solution to, but JMP Help, Scripting Index, Scripting Guide, and searches don't really talk about this specific issue. I did try the HTML tag &amp;amp;amp, and it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help!,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:12:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-correctly-display-ampersand-amp-in-Textbox-with/m-p/881445#M104557</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2025-06-25T14:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to correctly display ampersand (&amp;) in Textbox() with Markup?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-correctly-display-ampersand-amp-in-Textbox-with/m-p/881464#M104558</link>
      <description>&lt;P&gt;I just found it by looking at the source code for my posting and saw that I wasn't using the &amp;amp;amp tag correct, it should be: &amp;amp;amp; with the semicolon at the end. It works now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps others,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 14:14:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-correctly-display-ampersand-amp-in-Textbox-with/m-p/881464#M104558</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2025-06-25T14:14:24Z</dc:date>
    </item>
  </channel>
</rss>

