Fields - HTML Support

You can pass HTML as a field value to get the dynamic formatted text inside the output Document.

You need to add "*" in front of your field name to achieve that. So the final syntax should be: {*fieldName}

{description} - Regular Field that support only text and newline character
{*description} - Special field that supports HTML as input

There is a limited number of HTML tags that you can use for HTML to Document conversion here is the list:

<br>
<p>
<h1-h6> tags, they translates to paragraphs with different font-size
<p>
<b>
<i>
<u>
<ul>, <ol> and <li> for ordered (bullet list) and unordered lists
<span>
<strike>
<strong>
<em>
<code>
<table>, <tr>, <td>, <tbody>, <thead>, <tfoot>, <th> tags
<a href="URL">Linktext</a> - Links are parsed as regular text!
<sub> and <sup>
<img>

Experimental: Documentero can also parse styling properties. Please keep in mind that specific styles works only on specific elements and if value would be unrecognized or cannot be converted into into document format - styling will be omitted.

'page-break-after'
'background-color'
'vertical-align'
'text-align'
'font-weight'
'font-size'
'line-height'
'color'
'margin-right'
'margin-left'
'border-top'
'border-left'
'border-right'
'border-bottom'
'border-style'
'border-width'
'border-color'
'column-span'
'width'
'height'
'border-collapse'
'display'
'border'
'margin'
'background'
'font'

Please be aware that font settings for text in HTML Content will be inherited from your template Regular Text Styling Settings (You can change it your document template styling) (until it's not specified with styling properties)

Please be aware that unknown tags in html would be omitted in output document

Please be aware that HTML tags cannot be used inline with other text/bindings. Please use them in separate paragraph

Some text {*description} rest of text ====> INCORRECT

{#section}  {*description} {/section} ====> INCORRECT

Some text:
{*description} 
rest of text ====> CORRECT

{#section}
{*description}
{/section} ====> CORRECT

Last updated