Fix sanitizing
Fix the undefined access when content is null.
Implement DOM-based HTML sanitizer