IDEMPIERE-4208 Preserve @ and # in HTML content

This commit is contained in:
Nicolas Micoud 2020-03-18 14:11:45 +01:00 committed by Carlos Ruiz
parent 0b41ffd3f8
commit 170739bf6f
1 changed files with 6 additions and 2 deletions

View File

@ -273,7 +273,11 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
.and(Sanitizers.LINKS)
.and(Sanitizers.STYLES)
.and(Sanitizers.TABLES);
return policy.sanitize(untrustedHTML);
}
String ret = policy.sanitize(untrustedHTML);
ret = ret.replaceAll("&#35;", "#");
ret = ret.replaceAll("&#64;", "@");
return ret;
}
}