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.
In reply to Re^3: [Home Work]: Using (subset of) HTML as publishing language at PerlMonks: bug or feature?
by hardburn
in thread [Home Work]: Using (subset of) HTML as publishing language at PerlMonks: bug or feature?
by monsieur_champs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |