How to render html tags in jsReport
-
Hi everyone!
i've trouble how to render string that has html tags using jsreport in adonis. When i capture the text from text-editor (quill-editor) with his formating in pdf document generated is appered with html tags, how can solve it? Somebody can help me please? I have this problem many weeks ago, i'm looking for solution...One more other case, how do i can generate dinamically pages for content?
Kind reguard...
-
In case you use handlebars, you should use triple brackets to avoid html escaping
{{{prop}}}
.
https://handlebarsjs.com/guide/expressions.html#html-escaping
-
@jan_blaha thank you so much dude, it solved my trouble.
-
Well @jan_blaha can you tell how can i control the content in the page? Like that, I don't want the content to be too much on the page margin in the page transition process when the content is extensive.
see the print below
The content of next page must start after the image.
-
I don't understand the question.
Perhaps this css helps
https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-inside
https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-after
-
I would like to know, how to make a pagination in footer in jsreport? Somebody can help?