Properly decode html entities before printing them on pdf report