aramk/crayon-syntax-highlighter — pull request #157 by warrenseine (2014-03-18 14:50:35+00:00)
Title: Escape single quotes from code blocks

The current behavior of Crayon is to escape every special character but keep ' instead of single quotes. According to the PHP documentation, ENT_QUOTES will convert both double and single quotes. Changing the flags to ENT_QUOTES in html_entity_decode fixed it for me without breaking anything.