IDEMPIERE-4208 Preserve @ and # in HTML content
This commit is contained in:
parent
0b41ffd3f8
commit
170739bf6f
|
@ -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("#", "#");
|
||||
ret = ret.replaceAll("@", "@");
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue