MCPcopy Create free account
hub / github.com/code4craft/jsoup-learning / isValid

Method isValid

src/main/java/org/jsoup/Jsoup.java:246–250  ·  view source on GitHub ↗

Test if the input HTML has only tags and attributes allowed by the Whitelist. Useful for form validation. The input HTML should still be run through the cleaner to set up enforced attributes, and to tidy the output. @param bodyHtml HTML to test @param whitelist whitelist to test again

(String bodyHtml, Whitelist whitelist)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testIsValidMethod · 0.95

Calls 2

parseBodyFragmentMethod · 0.95
isValidMethod · 0.95

Tested by 1

testIsValidMethod · 0.76