Re: Re: [Pyds-users] Apostrophes in the aggregator
Georg Bauer <gb-BRhJDZTO+/[email protected]> Sat, 14 Feb 2004 10:41:04 +0100
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <r02010100-1028-E888A6815ED111D89CD3000A9573A72A@[10.0.0.145]> |
Hi! > And here we get to the core of the problem. htmlentitydefs does not > contain "apos", which is extremely surprising to me. Anyhow, adding Ah! Yes, that's quite simple to answer, it's my pet peave with the W3C. Those idiots had ' defined in old HTML descriptions, but not with newer HTML descriptions like HTML4. But they have it defined with XHTML, as XHTML is an XML dialect. So actually XHTML 1.0 and HTML4 strict are incompatible (despite what the W3C says!), as a valid XHTML document might include ' but HTML4 doesn't define that. So not every XHTML 1.0 document can be rendered by HTML4 browsers ... > import htmlentitydefs > htmlentitydefs.entitydefs['apos'] = "'" Yeah, that is one possible solution. I think it's the right one. Thanks for the analysis. CVS is patched. > I'm a little fuzzy on how "'" => "&apos" => "", but admit to not > caring much. ;-) Me too. bye, Georg