Added htmlentities to String prototype and implemented it in html2pdf
Oops, previous commit was not tested, and therefore didn't work...