Skip to content

Commit

Permalink
Remove incorrect example note in Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy committed Nov 17, 2023
1 parent 061ee0c commit 4ffc5be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/jsoup/safety/Safelist.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ If you need to allow more through (please be careful!), tweak a base safelist wi
<p>
The cleaner and these safelists assume that you want to clean a <code>body</code> fragment of HTML (to add user
supplied HTML into a templated page), and not to clean a full HTML document. If the latter is the case, either wrap the
document HTML around the cleaned body HTML, or create a safelist that allows <code>html</code> and <code>head</code>
elements as appropriate.
supplied HTML into a templated page), and not to clean a full HTML document. If the latter is the case, you could wrap
the templated document HTML around the cleaned body HTML.
</p>
<p>
If you are going to extend a safelist, please be very careful. Make sure you understand what attributes may lead to
Expand Down

0 comments on commit 4ffc5be

Please sign in to comment.