Hi,
Using the HtmlCleaner 2.1, we can just replace the deprecated tags to
appropriate alternative. We can remove TagSwapCleaningFilter.java and
set CleanerTransformations in DefaultHTMLCleaner.java instead.
Now we only swap <i> to <em>, <b> to <strong>. Is it necessary to
replace more deprecated tags?
I collect some other tags I think can be replaced.
s -> del
strike -> del
u -> ins or <p class="underline">
centre -> <span style="text-align:center">
font -> <span style="color:red;font-family=Arial;font-size=12;">
basefont -> <span style="color:red;font-family=Arial;font-size=12;">
Should we replaces all the tags above to their alternative? WDYT?
There are some deprecated tags which don't have explicit alternative, as below:
applet
dir
menu
isindex
--
Thanks
Wang Ning