Bug/feature requestB

"A. Craig West" <[email protected]> Wed, 17 Mar 2004 17:23:05 -0500 (EST)
Newsgroups gmane.network.everybuddy.devel
Message-ID <[email protected]>
Now that ebnc is using the nifty stripped version of the messages, I have
noticed a bug with how we do it. Possibly two bugs, but one of them looks like
a feature...

In Yahoo, if somebody is using that funky multicolour text, they send
messages that look like:
<FADE #ff0000,#00ff00,#0000ff>Foo bar baz</FADE>
For some reason this is coming through without being stripped...
Actually, it is even more interesting. When strip is off, it gets sent as:
&lt;FADE #ff0000,#00ff00,#0000ff>Foo bar baz&lt;/FADE>
and when strip is on it gets sent as:
<FADE #ff0000,#00ff00,#0000ff>Foo bar baz</FADE>

The one that might not be a bug is when the other user just specifies a single
colour. It appears that Yahoo is sending an ansi code directly or something.
eb-console shows the text changing colour directly (because the term is
parsing the code) while ebnc is showing the actual ansi code, for example:
^[[35mFoo bar baz

It could be the core that is doing that, I'm not sure how much parsing is
happening before it gets to eb-console...

In any case, it seems likely that html_strip needs to be told about the <FADE>
tag, and possibly needs to strip ansi codes, too.
I guess neither one is really a bug, unless FADE is a real HTML tag :-)

-- 
Craig West         Ph: (416) 666-1645	|  It's not a bug,
[email protected]              	|  It's a feature...