diff options
Diffstat (limited to 'common-app-api/src')
-rw-r--r-- | common-app-api/src/main/java/org/openecomp/sdc/common/util/NoHtmlValidator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/util/NoHtmlValidator.java b/common-app-api/src/main/java/org/openecomp/sdc/common/util/NoHtmlValidator.java index 38d4e7d79b..31f866e232 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/common/util/NoHtmlValidator.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/common/util/NoHtmlValidator.java @@ -32,6 +32,6 @@ public class NoHtmlValidator implements ConstraintValidator<NoHtml, String> { @Override public boolean isValid(String value, ConstraintValidatorContext ctx) { - return value == null || Jsoup.isValid(value, Safelist.none()); + return value == null || Jsoup.isValid(Jsoup.parseBodyFragment(value).body().html(), Safelist.none()); } } |