Mercurial > genshi > mirror
diff markup/builder.py @ 34:3421dd98f015 trunk
quotes should not be escaped inside text nodes
author | mgood |
---|---|
date | Sun, 02 Jul 2006 03:20:56 +0000 |
parents | 35956040ba6e |
children | b3fdf93057ab |
line wrap: on
line diff
--- a/markup/builder.py +++ b/markup/builder.py @@ -131,6 +131,10 @@ >>> print Element('p')('Hello ', Element('b')('world')) <p>Hello <b>world</b></p> + Quotes are not escaped inside text nodes: + >>> print Element('p')('"Hello"') + <p>"Hello"</p> + Elements can also be combined with other elements or strings using the addition operator, which results in a `Fragment` object that contains the operands: