HTML 实体转换器
将文本编码为 HTML 实体(最简、命名或数字形式),并将实体解码回文本。
使用方法
Enter text, then Encode to convert it to HTML entities or Decode to turn entities back into characters. Three encode modes are available: Minimal converts only & < > " and '; Named uses named entities such as © where a name exists and numeric references otherwise; Numeric converts every non-ASCII character to a decimal reference such as ©.
注意事项
Everything runs in your browser. Decoding supports named entities from this tool's table, decimal references (©) and hexadecimal references (©). Unknown names are left unchanged.
常见问题
Is ' decoded?
Yes, ' maps to '. Note it was not part of HTML4.
Can Japanese characters become named entities?
No named entities exist for them, so Named mode falls back to numeric references.