0

Specifically I'm trying to write "̅" with the quotation marks to indicate the character. I want the code to appear not the character.

I'm looking for alternative answers than to use &gt; or &lt; or <pre>.

  • 1
    It really depends on the context. Where are you trying to do this? Do you want the code to appear or the actual character? – ale Apr 14 '13 at 21:50
  • ...and I'm not sure this is really on-topic for this site. – ale Apr 14 '13 at 21:50
  • @AlEverett Where do you think would be more appropriate? – timothy.s.lau Apr 14 '13 at 22:03
  • @AlEverett On Google Sites. – timothy.s.lau Apr 14 '13 at 22:04
3

In HTML, the characters < and > are special (so are quotation marks in certain places). If you want these characters to appear, you'll need to encode them (as &lt; and &gt; respectively). The ampersand is used for encoding, and it follows that the ampersand is also a special character. If you want an actual ampersand to appear, you need to encode that too, as &amp;. Specifically, if you want the string &#773; to appear, you should encode it as &amp;#773;.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.