What to do for HTML comment processing ???

Matthias Andree matthias.andree at gmx.de
Tue Mar 4 03:35:36 CET 2003


David Relson <relson at osagesoftware.com> writes:

> Should bogofilter simply forget that dashes are in the html standard and
> treat "<!whatever is inside the angle brackets>" as a comment?

It's unprintable in any case in the structured languages (HTML, SGML,
XML), so just kill it.

> Probably the lexer can be written so that proper comments (with
> leading/trailing dashes) are recognized as well as comments without any
> dashes.  The proper treatment of "<!-- proper start, improper end>"
> remains a question.

Kill it.

-- 
Matthias Andree




More information about the Bogofilter mailing list