|
From: Yuri T. <qar...@gm...> - 2008-02-19 18:17:45
|
> The nice property that you lose here is that you can't guarantee you'll always > generate valid html/xml. Of course, you might not care about that, since > Markdown will include any old stuff from the user, but if you cared, using dom > trees gives you that guarantee. Well, as you noted, since Markdown allows you to insert anything that vaguely looks like html, you already have no guarantee of getting valid HTML in the end. (Unless you are using the "safe" option and discarding HTML.) Note that this approach should still give you valid HTML for any correct input. - yuri |