HTML Encode
Encode markup so it can be shown as text in HTML.
Try this example
Encode the sample. The angle brackets and ampersand become HTML entities.
<p>Tea & coffee</p>Expected result
<p>Tea & coffee</p>Choose this when displaying markup as a literal example in HTML text. Other output contexts can require different escaping.
Related walkthrough · When to Format or Minify HTML, CSS and JavaScript
DTool Team
Product Team
We build simple, reliable browser tools that make everyday digital work faster.