escaping " with "
Posted: Fri Mar 01, 2013 10:18 am
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?
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?