Back to Custom Fields Support

glynster
glynster

Hi, I have tried to use basic html in the custom field and even tried setting the field type as textarea, code and even richeditor and in each case the custom field is displayed as Special Entities text - for example if I use any formatting in the richeditor to create a h3 tag I get this:

<h3>Title here</h3>

I have tried setting the field type at code but its still the same

What am I doing wrong?

Vladimir
Vladimir

Hi,

Output variables in October are automatically escaped, the |raw filter marks the value as being "safe" and will not be escaped if raw is the last filter applied.

Example:

{{ post.getField('mytest') | raw }}

https://octobercms.com/docs/markup/filter-raw

glynster
glynster

Thank you! As you can probably tell I am brand new to this CMS and I would have spent ages trying to figure this out, I really appreciate you showing me that.

1-3 of 3