Adding functions to sanitize html
Refactorin everything in core, utils and examples