cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
MathStatChem
Level VI

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 VI

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.