properly handle script and style tags so they are rendered as they should be