Add a validation function to detect XSS attempt in richtext widgets
As it has been exposed in #9405 (closed) XSS code be injected into rich text widgets.
A validation function could be provided to ensure on the server side that the value of such a field do not contains harmful content.