Skip to content

Commit 39e47fc

Browse files
committed
doc
1 parent 84e2322 commit 39e47fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/owasp/html/HtmlPolicyBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,9 @@ public HtmlPolicyBuilder allowStyling(CssSchema whitelist) {
465465

466466
/**
467467
* Allow URLs in CSS styles.
468+
* For example,
469+
* {@code <span style="background-image: url(http://example.com/image.png)">}.
470+
* <p>
468471
* URLs in CSS are typically loaded without user-interaction, the way links
469472
* are, so a greater degree of scrutiny is warranted.
470473
*

0 commit comments

Comments
 (0)