Bug#181872: Patch
Denis Barbier said:
> On Wed, Apr 16, 2003 at 10:18:27PM +0800, Andrew Shugg wrote:
> [...]
> > To clarify what I outlined in #186740, if you were to start with this
> > sort of string:
> >
> > &foo blah & <url>
> >
> > you would end up with this in the HTML:
> >
> > &foo blah & <url>
> ^^^^^
> No, it should be &amp; since debian/control is supposed to be plain text.
>
> Denis
Ah yes. I misunderstood: my bad.
I had thought there were package descriptions that contained 'raw' SGML
entities, and that these needed fixing. I guess this is not the case,
and if there are any package descriptions that do have entities (with
the intent that they be rendered as '&', '<' etc) then it is them that
is broken ...
A single pass through HTML::Entities::encode_entities() should do it
then, rather than decode + encode.
Andrew.
--
Andrew Shugg <andrew@neep.com.au> http://www.neep.com.au/
"Just remember, Mr Fawlty, there's always someone worse off than yourself."
"Is there? Well I'd like to meet him. I could do with a good laugh."
Reply to: