Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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>.

share|improve this question
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? –  Al E. Apr 14 '13 at 21:50
    
...and I'm not sure this is really on-topic for this site. –  Al E. 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
add comment

1 Answer 1

up vote 3 down vote accepted

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;.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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