cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
MathStatChem
Level VII

Using "<" and ">" as normal text when using Markup with a Text Box

 Is there a way to display "<" and/or ">" as normal text in a Text Box.  For example, the script below gives an error, it is interpreting the < and > characters as parts of an HTML tag.  

names default to here(1);
string = "the value is <b> <<a </b>, but <i> > b </i>";
new window("test",
	text box(string, <<Markup(1))
)

What I want to display in the text box is 

 

the value is <<a, but > b

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Using "<" and ">" as normal text when using Markup with a Text Box

Maybe escaping with "<" with &lt; could work?

 

names default to here(1);
string = "the value is <b> &lt;&lt;a </b>, but <i> > b </i>";
new window("test",
	text box(string, <<Markup(1))
)

 And &gt; for >

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Using "<" and ">" as normal text when using Markup with a Text Box

Maybe escaping with "<" with &lt; could work?

 

names default to here(1);
string = "the value is <b> &lt;&lt;a </b>, but <i> > b </i>";
new window("test",
	text box(string, <<Markup(1))
)

 And &gt; for >

-Jarmo
MathStatChem
Level VII

Re: Using "<" and ">" as normal text when using Markup with a Text Box

That's it! I tried using &lt and &gt, but without the semicolon after.

Recommended Articles