pc035860 / angular-highlightjs

AngularJS directive for syntax highlighting with highlight.js
http://pc035860.github.io/angular-highlightjs/example/
MIT License
294 stars 53 forks source link

use textContent to get the contents of the code element #23

Closed mikec closed 10 years ago

mikec commented 10 years ago

this supports the use of character entities such as < and >

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

pc035860 commented 10 years ago

Great! Thanks.