Trying to publish "<" and ">" literally

4 visualizzazioni (ultimi 30 giorni)
Dan
Dan il 22 Gen 2013
Commentato: Dan il 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 Commento
per isakson
per isakson il 22 Gen 2013
Modificato: per isakson il 24 Gen 2013
Don't think it is possible. I sometimes add a spaces, "< asdf qwer >"

Accedi per commentare.

Risposta accettata

Zhuohe Liu
Zhuohe Liu il 25 Nov 2021
Modificato: Zhuohe Liu il 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 Commento
Dan
Dan il 29 Nov 2021
I've accepted this answer without validating it ... but it seems to make sense.

Accedi per commentare.

Più risposte (1)

Walter Roberson
Walter Roberson il 22 Gen 2013
try <asdf qwer>

Community Treasure Hunt

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

Start Hunting!

Translated by