Render HTML in Single line text field in Sitecore Scriban or Encode HTML in Single line text field in Sitecore Scriban

 If you use field type is Single line text and if you read the field in Sitecore scriban like i_item.Title it will not encode html string. if you want to encode html string for single line text use .raw property like below.

i_item.Title.raw

So single line text will also encode and render the html in scriban.

Comments