sanitizeHtml 보완
This commit is contained in:
parent
a4b3a4b33f
commit
6430e8c52a
@ -496,7 +496,6 @@ public class StringUtil extends StringUtils {
|
|||||||
.allowAttributes("class", "height", "width", "style").globally()
|
.allowAttributes("class", "height", "width", "style").globally()
|
||||||
.allowUrlProtocols("http","https","mailto","tel","data")
|
.allowUrlProtocols("http","https","mailto","tel","data")
|
||||||
.allowAttributes("src").matching(ONSITE_OR_OFFSITE_URL).onElements("img")
|
.allowAttributes("src").matching(ONSITE_OR_OFFSITE_URL).onElements("img")
|
||||||
.allowAttributes("src").matching(Pattern.compile("^.*data:image/.*$")).onElements("img")
|
|
||||||
.allowElements(
|
.allowElements(
|
||||||
"a", "label",
|
"a", "label",
|
||||||
"h1", "h2", "h3", "h4", "h5", "h6",
|
"h1", "h2", "h3", "h4", "h5", "h6",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user