Skip to main content
Inspiring
May 19, 2016
Answered

special characters must be escaped - but what does that mean exactly?

  • May 19, 2016
  • 1 reply
  • 71343 views

Hi,

I am working in codeview. The text I am formatting happens to be scientific info that includes things like this:  (incidence <2%) are nausea,......

OK, so the '<' causes me to get the error message: special characters must be escaped, and so that text won't render on the page properly.

What do I need to do for it to view this as readable text and not code?

Does escape mean backslash? - taking a guess... so it would be /<2% in my code?

Thank you.

This topic has been closed for replies.
Correct answer Jon Fritz

Yep, there are a few different codes you can use to make greater-than and less-than symbols in your text.

&gt; and &lt; are the shortest, and what Design View will write into your code automatically.

1 reply

Jon Fritz
Community Expert
Community Expert
May 19, 2016

If you're using < and > in equations within html text, use the html entities &lt; and &gt; in their place.

Using < and > in html code is specifically for starting and ending tags. If you type either from within Design View, DW will replace them automatically with their entity code. Code View doesn't understand that though and thinks you're using them intentionally, then gets confused when it doesn't see them being used for tags.

r_tistAuthor
Inspiring
May 19, 2016

I found this, and it worked great - gives you the HTML:

Unicode® character table

Jon Fritz
Community Expert
Jon FritzCommunity ExpertCorrect answer
Community Expert
May 19, 2016

Yep, there are a few different codes you can use to make greater-than and less-than symbols in your text.

&gt; and &lt; are the shortest, and what Design View will write into your code automatically.