views:

261

answers:

6

What is the character entity for the equal character in HTML? I have been looking and I cannot find the character entity reference for that one character.

EDIT:

I am building a JSLint style validator for HTML. I am not happy with current validators as they only validate syntax requirements and not best practice considerations. I am requiring that the equal character in attribute values be escaped to prevent confusion between a legal value that contains and equal character and two illegal attributes that are not separated by a space.

+5  A: 

I use asciitable.com. = has ASCII value 61, so the HTML entity is =.

yjerem
+3  A: 

You can use =, but it's not really necessary to escape = in HTML.

Joel Spolsky
A: 

=

But—why?

Bombe
A: 

=

Go here my friend

http://www.natural-innovations.com/wa/doc-charset.html

NoDinero
A: 
=

If http://www.december.com/html/spec/codes.html is to believed, that is.

Mana
A: 

"I am building a JSLint style validator for HTML."

Very interesting. I'm working on http://vldtr.com I'd love to hear from you as soon as something is finished.

Jeroen