transform_allergens
Transform allergens
Example
1
{{ 'text' | transform_allergens: true, 'prefix', 'suffix', 'div' }} => <div>Allergen</div>
Input
| Type | Parameter | Description | Required |
|---|---|---|---|
| string | text | The text to transform. Comes before the | sign. | Required |
| bool | upcase | If the text should be upcased | |
| string | prefix | The prefix to add | |
| string | suffix | The suffix to add | |
| string | encapsHtmlTag | The HTML tag to encapsulate the text in |