sanitizeHtml 보완

This commit is contained in:
KNKIM 2021-12-22 16:51:20 +09:00
parent a4b3a4b33f
commit 6430e8c52a

View File

@ -496,7 +496,6 @@ public class StringUtil extends StringUtils {
.allowAttributes("class", "height", "width", "style").globally()
.allowUrlProtocols("http","https","mailto","tel","data")
.allowAttributes("src").matching(ONSITE_OR_OFFSITE_URL).onElements("img")
.allowAttributes("src").matching(Pattern.compile("^.*data:image/.*$")).onElements("img")
.allowElements(
"a", "label",
"h1", "h2", "h3", "h4", "h5", "h6",