Uses of Class
com.itextpdf.styledxmlparser.jsoup.safety.Safelist
-
Packages that use Safelist Package Description com.itextpdf.styledxmlparser.jsoup com.itextpdf.styledxmlparser.jsoup.safety -
-
Uses of Safelist in com.itextpdf.styledxmlparser.jsoup
Methods in com.itextpdf.styledxmlparser.jsoup with parameters of type Safelist Modifier and Type Method Description static java.lang.StringJsoup. clean(java.lang.String bodyHtml, Safelist safelist)Get safe HTML from untrusted input HTML, by parsing input HTML and filtering it through a safe-list of permitted tags and attributes.static java.lang.StringJsoup. clean(java.lang.String bodyHtml, java.lang.String baseUri, Safelist safelist)Get safe HTML from untrusted input HTML, by parsing input HTML and filtering it through an allow-list of safe tags and attributes.static java.lang.StringJsoup. clean(java.lang.String bodyHtml, java.lang.String baseUri, Safelist safelist, Document.OutputSettings outputSettings)Get safe HTML from untrusted input HTML, by parsing input HTML and filtering it through a safe-list of permitted tags and attributes.static booleanJsoup. isValid(java.lang.String bodyHtml, Safelist safelist)Test if the input body HTML has only tags and attributes allowed by the Safelist. -
Uses of Safelist in com.itextpdf.styledxmlparser.jsoup.safety
Subclasses of Safelist in com.itextpdf.styledxmlparser.jsoup.safety Modifier and Type Class Description classWhitelistDeprecated.As of releasev1.14.1, this class is deprecated in favour ofSafelist.Fields in com.itextpdf.styledxmlparser.jsoup.safety declared as Safelist Modifier and Type Field Description private SafelistCleaner. safelistMethods in com.itextpdf.styledxmlparser.jsoup.safety that return Safelist Modifier and Type Method Description SafelistSafelist. addAttributes(java.lang.String tag, java.lang.String... attributes)Add a list of allowed attributes to a tag.SafelistWhitelist. addAttributes(java.lang.String tag, java.lang.String... attributes)Deprecated.SafelistSafelist. addEnforcedAttribute(java.lang.String tag, java.lang.String attribute, java.lang.String value)Add an enforced attribute to a tag.SafelistWhitelist. addEnforcedAttribute(java.lang.String tag, java.lang.String attribute, java.lang.String value)Deprecated.SafelistSafelist. addProtocols(java.lang.String tag, java.lang.String attribute, java.lang.String... protocols)Add allowed URL protocols for an element's URL attribute.SafelistWhitelist. addProtocols(java.lang.String tag, java.lang.String attribute, java.lang.String... protocols)Deprecated.SafelistSafelist. addTags(java.lang.String... tags)Add a list of allowed elements to a safelist.SafelistWhitelist. addTags(java.lang.String... tags)Deprecated.static SafelistSafelist. basic()This safelist allows a fuller range of text nodes:a, b, blockquote, br, cite, code, dd, dl, dt, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul, and appropriate attributes.static SafelistSafelist. basicWithImages()This safelist allows the same text tags asbasic(), and also allowsimgtags, with appropriate attributes, withsrcpointing tohttporhttps.static SafelistSafelist. none()This safelist allows only text nodes: all HTML will be stripped.SafelistSafelist. preserveRelativeLinks(boolean preserve)Configure this Safelist to preserve relative links in an element's URL attribute, or convert them to absolute links.SafelistWhitelist. preserveRelativeLinks(boolean preserve)Deprecated.static SafelistSafelist. relaxed()This safelist allows a full range of text and structural body HTML:a, b, blockquote, br, caption, cite, code, col, colgroup, dd, div, dl, dt, em, h1, h2, h3, h4, h5, h6, i, img, li, ol, p, pre, q, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, u, ulSafelistSafelist. removeAttributes(java.lang.String tag, java.lang.String... attributes)Remove a list of allowed attributes from a tag.SafelistWhitelist. removeAttributes(java.lang.String tag, java.lang.String... attributes)Deprecated.SafelistSafelist. removeEnforcedAttribute(java.lang.String tag, java.lang.String attribute)Remove a previously configured enforced attribute from a tag.SafelistWhitelist. removeEnforcedAttribute(java.lang.String tag, java.lang.String attribute)Deprecated.SafelistSafelist. removeProtocols(java.lang.String tag, java.lang.String attribute, java.lang.String... removeProtocols)Remove allowed URL protocols for an element's URL attribute.SafelistWhitelist. removeProtocols(java.lang.String tag, java.lang.String attribute, java.lang.String... removeProtocols)Deprecated.SafelistSafelist. removeTags(java.lang.String... tags)Remove a list of allowed elements from a safelist.SafelistWhitelist. removeTags(java.lang.String... tags)Deprecated.static SafelistSafelist. simpleText()This safelist allows only simple text formatting:b, em, i, strong, u.Constructors in com.itextpdf.styledxmlparser.jsoup.safety with parameters of type Safelist Constructor Description Cleaner(Safelist safelist)Create a new cleaner, that sanitizes documents using the supplied safelist.Safelist(Safelist copy)Deep copy an existing Safelist to a new Safelist.Whitelist(Safelist copy)Deprecated.
-