docx template problem with docxHtml
-
Hello,
I have a problem with docx template, using the docxHtml tag.
If I put this into ONE ROW of docx template
{{brand}} {{model_no}} {{docxHtml content=slug}}When I set this data object to the jsreport,
brand
,model_no
are disappeared, there is only thedocxHtml slug
const jsreportdata = {brand: 'New Brand', model_no: 'Model 123', slug: '<a href="https://google.com" target="_blank">Learn More</a>'}
Example of template here
How can I fix this?
Thank you,
Thai
-
hi! what you are describing is how
docxHtml
works by default, it is mentioned in the docs, if you want to preserve content defined in the same paragraph that containsdocxHtml
call then you need to use inline mode