| Changed Methods |
Whitelist
addAttributes(
String,
String[]
)
|
Documentation changed from old to new. |
Add a list of allowed attributes to a tag. |
Whitelist
addEnforcedAttribute(
String,
String
,
String
)
|
Documentation changed from old to new. |
Add an enforced attribute to a tag. |
Whitelist
addProtocols(
String,
String
,
String[]
)
|
Documentation changed from old to new. |
Add allowed URL protocols for an element's URL attribute. |
Whitelist
addTags(
String[])
|
Documentation changed from old to new. |
Add a list of allowed elements to a whitelist. |
Whitelist
basic()
|
Documentation changed from old to new. |
This whitelist 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. |
Whitelist
basicWithImages()
|
Documentation changed from old to new. |
This whitelist allows the same text tags as .basic, and also allows img tags, with appropriate attributes, with src pointing to http or https. |
Whitelist
none()
|
Documentation changed from old to new. |
This whitelist allows only text nodes: all HTML will be stripped. |
Whitelist
preserveRelativeLinks(
boolean)
|
Documentation changed from old to new. |
Configure this Whitelist to preserve relative links in an element's URL attribute, or convert them to absolute links. |
Whitelist
relaxed()
|
Documentation changed from old to new. |
This whitelist 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, ul |
Whitelist
removeAttributes(
String,
String[]
)
|
Documentation changed from old to new. |
Remove a list of allowed attributes from a tag. |
Whitelist
removeEnforcedAttribute(
String,
String
)
|
Documentation changed from old to new. |
Remove a previously configured enforced attribute from a tag. |
Whitelist
removeProtocols(
String,
String
,
String[]
)
|
Documentation changed from old to new. |
Remove allowed URL protocols for an element's URL attribute. |
Whitelist
removeTags(
String[])
|
Documentation changed from old to new. |
Remove a list of allowed elements from a whitelist. |
Whitelist
simpleText()
|
Documentation changed from old to new. |
This whitelist allows only simple text formatting: b, em, i, strong, u. |