I was under the impression:
When you need to specify a " in the middle of text, you use the " entity to represent the character.
When you need to specify a " in the middle of a quoted attribute value, you have two ways of handling it:
<param name="say" value="He said "All your base are belong to us"">
<param name="say" value='He said "All your base are belong to us"'>
Yet I notice HTMLValidator does not complain about " in text. It is ok now? Was it always ok?
escaping " with "
- Albert Wiersch
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
Re: escaping " with "
Actually, it is not necessary to use the character reference. I believe it was always technically OK... at least as far back as I can remember.roedygr wrote:When you need to specify a " in the middle of text, you use the " entity to represent the character.
There is a still a 'legacy' option to make CSE HTML Validator complain about a direct double quote in text, should you want to enable it.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial