Trying to publish "<" and ">" literally

7 views (last 30 days)
Dan
Dan on 22 Jan 2013
Commented: Dan on 29 Nov 2021
I am trying to publish via MATLABs publishing tool. I'd like to publish "<asdf qwer>" literally (without the double quotes) but MATLAB keeps turning the expression into a link. I try to use an escape character (i.e. \<asdf qwer\>) and the escape character is printed . How to I literally publish "<asdf qwer>" with an escape character that will not appear?
  1 Comment
per isakson
per isakson on 22 Jan 2013
Edited: per isakson on 24 Jan 2013
Don't think it is possible. I sometimes add a spaces, "< asdf qwer >"

Sign in to comment.

Accepted Answer

Zhuohe Liu
Zhuohe Liu on 25 Nov 2021
Edited: Zhuohe Liu on 25 Nov 2021
Replace < and > using HTML entity names: &lt;asdf qwer&gt;
In fact, you may just replace one of them: &lt;asdf qwer>
  1 Comment
Dan
Dan on 29 Nov 2021
I've accepted this answer without validating it ... but it seems to make sense.

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 22 Jan 2013
try <asdf qwer>

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!