Chuyển đến nội dung chính

Công cụ chuyển đổi thực thể HTML

Công cụ cho Nhà phát triển

Ký tự ↔ mã thực thể HTML

Xem nhanh kết quả

HTML Entities Converter: Characters ↔ HTML entity codes. HTML Entities Converter uses standard developer formulas to compute accurate results instantly.

Hướng:Định dạng:

Nhập

Đầu ra

Tại sao cần thoát ký tự?

  1. 1< và > là dấu phân cách thẻ — ký tự < theo nghĩa đen trong văn bản có thể được phân tích thành bắt đầu thẻ, phá hủy trang.
  2. 2& là ký tự bắt đầu tham chiếu thực thể — ký tự & theo nghĩa đen phải được viết thành &amp;.
  3. 3Dấu ngoặc kép trong giá trị thuộc tính phải được thoát, nếu không có thể đóng thuộc tính trước, là điểm vào phổ biến của tiêm XSS.

Tra cứu nhanh thực thể thường dùng

Ký tựNamedDecimalGhi chú
<&lt;&#60;Less than
>&gt;&#62;Greater than
&&amp;&#38;Ampersand
"&quot;&#34;Double quote
'&#39;&#39;Single quote
␣&nbsp;&#160;Non-breaking space
©&copy;&#169;Copyright
®&reg;&#174;Registered
™&trade;&#8482;Trademark
¥&yen;&#165;Yen
€&euro;&#8364;Euro
°&deg;&#176;Degree
±&plusmn;&#177;Plus-minus
×&times;&#215;Multiplication
÷&divide;&#247;Division
←&larr;&#8592;Left arrow
→&rarr;&#8594;Right arrow
♥&hearts;&#9829;Heart
Quy tắc kinh nghiệmNội dung người dùng phải thoát 4 ký tự < > & "

Công cụ này có hữu ích cho bạn không?

Hướng dẫn sử dụng

  1. Paste or type content: drop code/text into the HTML Entities Converter or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

Điểm chính

  • HTML Entities Converter is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Characters ↔ HTML entity codes.
  • Results come with formulas and reference tables so you can verify every number.

Công thức và nguyên lý hoạt động

HTML Entities Converter formula

HTML Entities Converter uses standard developer formulas to compute accurate results instantly.

Câu hỏi thường gặp

How do I use the HTML Entities Converter?
Open the page and fill in the input fields — results update automatically. Characters ↔ HTML entity codes.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

Công cụ liên quan

Hướng dẫn liên quan

Nguồn và cập nhật

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

Cập nhật gần nhất:

Công thức và nội dung trên trang này đã được đội ngũ YiJianSuan kiểm tra lại, chỉ dùng để tham khảo học tập, các nghiệp vụ thực tế vui lòng tuân theo thông báo chính thức.

Nội dung được đội ngũ biên tập YiJianSuan duy trì và kiểm tra lại định kỳ, quy trình cập nhật và kiểm duyệt xem tạiQuy định biên tập.

Trích dẫn trang này: YiJianSuan. Công cụ chuyển đổi thực thể HTML[EB/OL]. https://www.yijiansuan.com/vi/c/dev/html-entities

Kết quả do công cụ này cung cấp chỉ mang tính tham khảo, không cấu thành bất kỳ lời khuyên chuyên nghiệp nào, vui lòng dựa trên kết quả tính toán chính thức.