Fix for PHP 5.4 compatibility as "\e" is now an escaped character, the last lines were malformed (d{displaymath} instead of \end{displaymath})
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.double
Merge pull request #2 from rc2c/master

PHP 5.4 compatibility fix