Re: htmlfill and CDATA

Ian Bicking <[email protected]>
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
Jacob Smullyan wrote:
> An application of mine using htmlfill recently stopped working because
> the template passing through it has evolved to contain CDATA blocks
> (wrapping the contents of script tags).  HTMLParser is the culprit
> here, and I'm not optimistic about its behavior changing.

What exactly is it doing wrong?

> Has anyone dealt with this?  Would a lxml.etree.HTML-based htmlfill be
> useful to anyone?

I would love to see an lxml implementation of htmlfill.  Probably it 
could just work on the common ElementTree/lxml interface; I think the 
differences won't be too important in this case.  Accepting ElementTree 
would make it compatible with Kid output.  But not Genshi, which is 
another format entirely... oh well.

-- 
Ian Bicking | [email protected] | http://blog.ianbicking.org

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.