Mã hóa thực thể HTML

Dán HTML hoặc văn bản bên dưới và nhấp Mã hóa để escape các ký tự đặc biệt thành thực thể HTML. Mọi xử lý đều diễn ra cục bộ trong trình duyệt của bạn.

Đã sao chép!

What is HTML Entity Encoding?

HTML entity encoding converts special characters into their HTML entity equivalents to prevent them from being interpreted as HTML markup. For example:

  • <&lt;
  • >&gt;
  • &&amp;
  • "&quot;
  • '&#39;

This prevents XSS attacks and ensures text displays correctly in HTML documents.