replacing " with "

Waylan Limberg waylan at gmail.com
Sat Jan 5 12:51:22 EST 2008


Thanks for the feedback guys. I just wanted to make sure I wasn't
missing anything before commiting the change. Oh, and Michel, thanks
for the reminder about attributes. Python-markdown's dom should make
that easy to do.

On Jan 5, 2008 10:29 AM, Yuri Takhteyev <qaramazov at gmail.com> wrote:

> I agree with Michel, that it's better to not escape things where it's

> not necessary.

>

> If you want to fix it, the place to do is the method

> Document.normalizeEntities(), which is now called in two places:

>

> 1. in Element.toxml() separately for each attribute

> 2. in TextNode.toxml() for the whole thing

>

> The quickest fix would be to add an extra keyword parameter to this

> function: something like "skip_quotes" and call with this parameter in

> the second case. Note that "<", ">", and "&" need to be replaced in

> both cases.

>

> - yuri

>

> On Jan 5, 2008 4:51 AM, Michel Fortin <michel.fortin at michelf.com> wrote:

>

> > > So, my question is: Which implementation do you consider correct

> > > and why?

> >

> > I'd say both are correct since, within HTML or XML character data, a

> > character entity is semantically equivalent to the litteral character

> > it represents. But for the sake of compatibility with other

> > processing tools, I'd avoid using an entity for strait quotes (or any

> > other character for that matter) when it's not necessary.

>

> --

> http://sputnik.freewisdom.org/

>

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss

>




--
----
Waylan Limberg
waylan at gmail.com


More information about the Markdown-Discuss mailing list