HTML formatting for PDF Template from WYSIWYG

Hey guys,

So I’m tweaking my PDF Templates, particularly contract creation from quote, and I wanted to add in verbiage under the description field, but since it is plain text, I wanted to use HTML. I added a WYSIWYG plugin which works great, but when printed to PDF, it shows as:

This is a test

Any ideas how I can either resolve PDF print to include formatting, or another way to have formatting within description fields and kick out properly to PDF?

Found the answer online!

https://github.com/604media/SuiteCRM/commit/5533dcb7a6260ff71c646ed760da4f6a020e1581

I added the 3 lines of code (below) as described in github in the following directory modules/AOS_PDF_Templates/templateParser.php

else if($field_def[‘type’] == ‘wysiwyg’) {
$repl_arr[$key."_".$field_def[‘name’]] = html_entity_decode($focus->$field_def[‘name’], ENT_COMPAT, ‘UTF-8’);
}

now when I select a PDF template I just get a blank screen and it is stuck on:

http://XXXXX.com/index.php?entryPoint=generatePdf.

No errors are showing in developer tools.

I’m set up with 7.5.1 on a LAMP PHP version: 5.5.31