[reportlab-users] Special characters in paragraphs

Christoph Zwerschke zwerschke at zuv.uni-heidelberg.de
Wed Dec 14 04:49:33 EST 2005


Dick Kniep wrote:
> xml parser error (; missing in entityref) in paragraph beginning
> 'Den Besten&Sloof'
> Note the '&' in the text which causes the crash.

This should really go to the FAQ. As the error indicates, Platypus 
paragraphs are parsed as XML since they can contain XML tags (see user 
guide). So you have to escape any special XML characters like & and <>.
In this case, you have to write &amp; instead of &.

-- Christoph


More information about the reportlab-users mailing list