You need to use the HTML entities <
and >
instead of < and >, respectively.
str = "<" + "some text" + ">"
문제
If I have a string
str = "<" + "some text" + ">";
How would I output this to a rich text editor, with the desire to also display the '<' and '>' surrounding the text?
해결책
You need to use the HTML entities <
and >
instead of < and >, respectively.
str = "<" + "some text" + ">"