[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [syndication] HTML Encoding BooHoo...
>Maybe I'm missing something here, but...
No, not really :) ...
>Any reason why you can't scan the feed as plain text before passing it to
>the perl module, and replace all instances of <XML> with
>&lt;XML>& etc? Variations can be done ad nauseum to get the
>effect you need.
That is ultimately what I planned to do, but that's a few versions away - I
was hoping for a "quick fix cos in the last four months, this is the first
time it's happened" sort of thing. But, in the future, there'd be three
choices of browser display: "show as intended", "show html
entities/encoded" and "strip html"... To do something like that, I'd have
to preparse it before handling it off to the XML parser. That's my plan, at
least.
I guess, at this point, the quick fix is to handle the <XML> thing only -
which (almost) in my head seems to quick of a fix <g>. But off the top of
my head, I can't think of anything else that would cause the same sort of
show-stopping problem that is currently happening with IE ("oop! hey! an
XML document! stop showing HTML and start parsing XML!")...
>Seems everything is working for you except this one problem -- I'd focus on
It seems that way - as mentioned, this is the first time the parser ran
across any show stopping error (another minor error include problems when
an unencoded HTML tag is up against an XML tag, like "<title><b>This is
a</b> title</title>" - this isn't really an error as opposed to "too
difficult to care about" and it only seems to happen with The Register's
feed every so often)...
Morbus Iff
.sig on other machine.
http://www.disobey.com/
http://www.gamegrene.com/