Text format is escaped until (manual) re-save
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3483197. -->
Reported by: [alfthecat](https://www.drupal.org/user/495982)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Hi all, I've ran into a similar issue using ECA, so perhaps a similar solution can apply here as well. In my prompt, I ask AI to return the result as HTML, using h2 and p tags. This results in the html showing in the front-end, until the entity is re-saved, at which point the text formatting runs. </p>
<p>With ECA, the fix was to first save the text to the text field and then to add an action to set the text format. Not the other way around.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue