Get a Free Trial
GrabzIt's Online Community

Styling variables in Templates

Ask questions on how to capture or convert web pages or HTML into images, MP4. CSV, PDF or DOCX documents as well on how to convert videos into animated GIF's using our API.

There are no forum posts on this topic! Why don't you write one?

I created a template and used it for headers and footers when generating DOCX.

I am passing html string to template variable for example "<a style='color:red'>Hello</a>". But, when I open the generated document, the exact string including the html tags with no styling in appended in place of the variable.

Is there a way to apply the custom styling to the variables from incoming custom strings in templates rather than explicitly adding colors or fonts to the variable itself in template?

Asked by anonymous on the 10th of February 2021

No, this isn't possible a template variable is supposed to be a plain value.

Answered by GrabzIt Support on the 10th of February 2021