use textContent to get the contents of the code element

this supports the use of character entities such as &lt; and &gt;

it's also the same technique used by highlight.js in the highlightBlock function(https://github.com/isagalaev/highlight.js/blob/master/src/highlight.js#L508)