1
有効なHTMLをウェブページにプレーンテキストとして表示する適切な方法は何ですか?ウェブページにプレーンテキストとしてHTMLマークアップを含める
有効なHTMLをウェブページにプレーンテキストとして表示する適切な方法は何ですか?ウェブページにプレーンテキストとしてHTMLマークアップを含める
<pre>
<code>
<!-- As seen on stackoverflow.com, and it's correct -->
<p class="inception">valid HTML</p>
</code>
</pre>
[エンコードHTML](http://jsfiddle.net/B7448/)では、影響を受けるマークアップが表示されます。たとえば、PHPには[htmlentities()](http://php.net/manual/en/function.htmlentities.php)があります。 –