HTML编码用于将HTML特殊字符转换为实体编码,防止XSS攻击和确保正确显示。HTML编码使用百分号(%)后跟两个十六进制数字来表示特殊字符。
编码示例:
输入: → 输出:Hello<div>Hello</div>
解码示例:
输入:<div>Hello</div> → 输出:Hello
所有操作均在您的浏览器本地完成,不会将您的文本内容上传至服务器或保存在任何地方。您可以放心使用本工具处理敏感文本内容。
HTML encoding is used to convert HTML special characters into entity encoding to prevent XSS attacks and ensure correct display. URL encoding uses a percent sign (%) followed by two hexadecimal digits to represent special characters.
Encode Example:
Input: → Output: Hello<div>Hello</div>
Decode Example:
Input: <div>Hello</div> → Output: Hello
All operations are performed locally in your browser, and your text content is never uploaded to any server or saved anywhere. You can confidently use this tool to process sensitive text content.