-
-
Notifications
You must be signed in to change notification settings - Fork 637
Description
Hi,
I was wondering if it is possible to render HTML tags, e.g., <b>, <p>,<ul>, etc. as cell content, as part of the array passed to the "body" parameter?
So far I only managed to obtain the raw tags in the generated pdf. I also played around with the "didParseCell" hook and tried to replace tags and introduce newline characters, i.e, "\r\n" etc. to achieve simple line breaks in the cell, but without success. The "\r\n" seems to be removed before the rendering, and
also remain as raw output. If linebreaks and other formatting is possible, is there a collection/doc for these options?
On the side, thank you very much for this valuable plugin!
EDIT: I have seen in #364 that it should work to have some tags like <br> as content, and that to be rendered as a line break. It is not the case for me, could this raise from a lack of configuration of the jspdf object on my end? Further, could the suggestion in #364 from @arjunkolagatla be a solution for me, that is, to intercept the case of HTML elements with Regex and treat them separately with "parseHTML" in some way?