HTML Entity Converter
HTMLエンティティのエンコードとデコードを行い、XSS攻撃を防ぎ、特殊文字を安全に表示します。
🔒 HTML Encode
Output will appear here...
💡 Common HTML Entities
CharacterNamedDecimalHex
<
<<<>
>>>&
&&&"
"""'
'''©
©©©€
€€€🔒 Prevent XSS
Encode user input to prevent cross-site scripting attacks
📝 Display HTML
Show HTML code as text without executing it
🔄 Data Transfer
Safely transmit special characters in URLs and forms
🌐 Internationalization
Handle unicode characters across different systems
主な機能
- 双方向変換(エンコード ↔ デコード)
- 複数のエンコード形式:名前付き、10進数、16進数
- リアルタイム変換
エンコード形式
名前付きエンティティ
`<` `>` `&` `"`lt; `<` `>` `&` `"`gt; & "
10進数エンティティ
< > & "
16進数エンティティ
< > & "
使用例
1. XSS攻撃の防止
const safeHtml = encodeHtml(userInput);
2. HTMLコードの表示
実行せずにHTMLをテキストとして表示