Class SimplifyHtmlFilter

    • Method Detail

      • addAcceptedTag

        public void addAcceptedTag​(String tag)
        Adds a tag that is accepted by this filter, with all its attributes.
        Parameters:
        tag - HTML tag that is accepted (without angle brackets, e.g. "strong")
      • addAcceptedTag

        public void addAcceptedTag​(String tag,
                                   String... attributes)
        Adds a tag that is accepted by this filter, along with accepted attributes.
        Parameters:
        tag - HTML tag that is accepted (without angle brackets, e.g. "img")
        attributes - an array of accepted attributes (e.g. "src", "alt")