HTMLコードをそのまま画面に表示する
この記事のポイント
- コードを入れる
- エスケープを押す
- ページに貼る
HTMLエスケープ で変換すると、タグが動かず文字として表示されます。
手順
- コードを入れる
- エスケープを押す
- ページに貼る
ブログなどでコードを紹介するときに使います。
HTMLエスケープ・アンエスケープを使う(無料)
あわせて使えるツール
- URLエンコード・デコード:URLの日本語や記号を、エンコード・デコードします。
- 文字列のBase64変換(エンコード・デコード):文字列とBase64を、相互に変換します。
- JSONを整える・チェックする:JSONを整形・圧縮し、書き方をチェックします。
同じツールの、ほかの解説
Showing HTML Code as Plain Text
Key points
- Enter the code
- Press Escape
- Paste into your page
Converting with HTML Escape makes tags display as text instead of running.
Steps
- Enter the code
- Press Escape
- Paste into your page
Useful when showing code on a blog.
Use "HTML Escape and Unescape" (free)
Tools that go well with this
- URL Encode and Decode: Encode and decode text in URLs.
- Base64 Text Encoder and Decoder: Convert text to and from Base64.
- Format and Validate JSON: Format, minify and validate JSON.