This class can be used to process and remove unwanted tags from HTML documents.
It can take a list of names of tags to keep as parameters. Then it replaces the allowed tags by pseudo-tags. The remaining tags are removed and the original tags are restored in the final pass.
The resulting HTML document is stored in a class variable but it can also be saved back to a file.
- Code: Select all
http://www.phpclasses.org/browse/package/3042.html
