Best for
Working with HTML content, escaping text and debugging encoded markup.
Helpful tip
Encoding is useful for representing text safely in HTML, but context-specific output escaping is still important in applications.
Limitation
It is not a complete HTML sanitizer and should not be treated as one.