[ZPT] problems with &nbsp; and <br />

Guido van Rossum guido@digicool.com
Mon, 09 Apr 2001 18:36:28 -0500


> Sorry if this question has already been asked and answered...
> 
> Are there anyway to preserve the browser complaint XHTML <br /> instead
> of receiving <br/> which is not recognized...

Oops, I think not.  I'll have to fix this, because this used to be a
requirement.  Note that you can write <br>, but then of course it
won't be valid XHTML.

> Further, are ther anyway to escape the transformation of & to &amp; so
> that I can use &nbsp; as a tal replace argument ?

Yes, use &amp;nbsp;.  Ugly but works.

--Guido van Rossum (home page: http://www.python.org/~guido/)