Главная
Tom Utilities

Экранирование HTML

HTML, CSS и JavaScript

Экранирует текст для безопасного вывода HTML или декодирует HTML-сущности обратно в читаемые символы.

Ввод

Результат

Как использовать

Escaping HTML entities

Press Encode to escape angle brackets and ampersands, or Decode to turn entities back into characters.

  1. Paste text or markup.
  2. Press Encode or Decode.
  3. Copy the converted result.

Частые вопросы

Can escaping protect against XSS?

Escaping is one layer of defence. Always escape output on the server as well.

Are numeric entities supported?

Yes, decode understands named, decimal and hexadecimal entities.