Within a standard code block, should HTML appear exactly as written?
For example, if I put the following:
<code>
<script type="text/javascript">Something in javascript</script>
</code>
Should it appear exactly as above?
I assume the code button here on stackoverflow is doing something else other than just putting it in ?
Thanks!
There are certain characters that must be encoded even in the code block. My preference is converting the less than, greater than and ampersand. This handles most of the code.