[lxml-dev] .text_content() should leave spaces. Tests included
Ian Bicking
ianb at colorstudy.com
Thu Aug 28 19:37:05 CEST 2008
Max Ivanov wrote:
> The way I've implementent text_content() analog. I've no idea abouth
> XPath, so maybe some of checks could be implemented as XPath
> processing instruction. Thats' just scratch to show an idea, no deep
> testing at all but results are ok for me.
Just FYI, there's some code to translate HTML to text here:
http://svn.w4py.org/ZPTKit/trunk/ZPTKit/htmlrender.py (not based on lxml).
--
Ian Bicking : ianb at colorstudy.com : http://blog.ianbicking.org
More information about the lxml-dev
mailing list