Кодируйте HTML сущности
Tool guide
For a snippet of markup to show up as text rather than turn into elements, its special characters have to become entities: angle brackets, the ampersand and both kinds of quote. This tool does that swap, handing you a string you can drop into an article, a product card, an email template or a CMS field without it rendering. The same substitution is the backbone of XSS defence when user input is echoed back to a page. See also: unescape entities back to readable text, clean a fragment down to plain text, render HTML from a Markdown draft.
Three matter in page text: the ampersand, less-than and greater-than. Inside an attribute value you must add both quote characters, otherwise the value closes early and whatever follows becomes part of the tag. Letters, spaces and punctuation need no escaping at all.
Encode the snippet here and paste the result inside a pre and code block. The browser then prints <div> as text instead of building an element. If your CMS editor escapes input on its own, encoding again produces double escaping and readers see < — always check the preview.
For user text printed into the page body it usually is, and it belongs in your server code or template engine rather than a manual paste. Context still decides: inside a script tag, in an href value or in an inline event handler the rules differ and HTML entities alone fall short. This page prepares content; it is not an application security control.
No. Modern pages are served as UTF-8 and carry those letters literally, which keeps the markup shorter and the text indexable. Numeric references for them made sense in the days of mixed code pages and now survive mostly in legacy exports and email templates.
HTML entities decide how a character is displayed in a document; percent encoding decides how it survives a trip inside an address. A link with parameters needs a URL encoder instead. A string landing in an href sometimes needs both: percent-encode the value, then HTML-escape the whole attribute.
The substitution runs in the page script inside your open tab, so an unpublished draft or a customer review is safe to paste — nothing leaves the machine. Both boxes empty on reload, so grab the output with the copy button straight away.
Before: Order & pay
After: <a href="/order">Order & pay</a>
Before: Best price in town
After: Best <b>price</b> in town
Your rating and feedback help decide what to improve next.