Class TagReplaceRule

  • All Implemented Interfaces:
    TagRule

    public class TagReplaceRule
    extends BasicRule
    Very simple rule for replacing all occurences of one tag with another.

    For example, to convert all <b> tags to <strong>:

    html.addRule(new TagReplaceRule("b", "strong"));

    Author:
    Joe Walnes
    • Field Detail

      • newTagName

        private final String newTagName
    • Constructor Detail

      • TagReplaceRule

        public TagReplaceRule​(String originalTagName,
                              String newTagName)