On 30/08/10 23:55, Simon Ruderich wrote:
On Mon, Aug 30, 2010 at 01:33:11PM +1200, Stuart Rackham wrote:
On 30/08/10 05:17, Simon Ruderich wrote:
Hi,
Consider the following AsciiDoc snippet:
image:text[And some "quotes" here!]
This creates the following HTML:
<img src="text" alt="And some "quotes" here!" />
The quotes in alt aren't escaped which is invalid HTML. Is there
a way to fix this?
<img src="text" alt="And some"quotes" here!" />
See http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
Cheers, Stuart
Sorry, I guess I asked the question wrongly, I meant in AsciiDoc.
I know how to fix the HTML output, but IMO AsciiDoc shouldn't
generate invalid HTML in this/any case.
AsciiDoc is backend agnostic, the idea is that it is hardwired with as little of
the backend formats as possible and it has no knowledge of backend DTDs.
Admittedly it is biased towards SGML/XML formats but it can out other formats
e.g. LaTeX.
Output document validation (syntactic and structural) is best performed by
external tools e.g. xmllint. a2x automatically performs validation checks using
xmllint.
Cheers, Stuart
Thanks,
Simon
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.