in reply to Re^2: [Home Work]: Using (subset of) HTML as publishing language at PerlMonks: bug or feature?
in thread [Home Work]: Using (subset of) HTML as publishing language at PerlMonks: bug or feature?
The difference is that you don't filter--you convert. If you use an HTML-subset, you have to check for a multitude of different things, many of which may have only been mentioned in one sentance of one paragraph inside a whole heap of documentation. Missing one means that something you didn't want got through.
If you use a specifically-defined format (UBB tags come to mind), you get to specify exactly what goes in there and anything else is simply invalid. In this case, you can escape any HTML in the data (which is a lot easier than filtering specific kinds of HTML).
----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: [Home Work]: Using (subset of) HTML as publishing language at PerlMonks: bug or feature?
by monsieur_champs (Curate) on Jun 21, 2004 at 14:40 UTC | |
by hardburn (Abbot) on Jun 21, 2004 at 15:05 UTC |