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 &#34;quotes&#34; 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.

Thanks,
Simon
-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

Attachment: pgpouimCaVYZl.pgp
Description: PGP signature

Reply via email to