Hi, I have installed EE4 and I notice that when I create a text input or textarea field with text formatting set to “None”, html tags still get encoded. For example, opening and closing tags get encoded as < and > respectively. I understand that some sort of cleansing is being done before saving data to the database, but this should be converted back when outputting to the browser, no?
Regards, Matts
Hi James, I tried this but the tags still get converted to character entities. The Rich Text Editor (RTE) also converts its html source to character entities which is really strange.
I forgot to mention that all fields are inside a fluid field. That might explain it. It seems that the {content} tag inside a fluid field surrounds the actual content with <p></p>.
For example if I add a text input to a fluid field and enter
<h3>Some heading text</h3>
in the text input field and then display it using the following template code:
{my_fluid_field}
{my_fluid_field:my_text_input}
{content}
{/my_fluid_field:my_text_input}
{/my_fluid_field}
…EE actually outputs…
<p><h3>Some heading text</h3></p>
If I change the field formatting to markdown and enter…
#### Some heading text
…it seems to work. However it is not always convenient to use markdown…
Regards, Matts
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.