AI Generate responses escaping HTML, or oddly formatted HTML
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3526124. --> Reported by: [jhedstrom](https://www.drupal.org/user/208732) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The AI Generator is escaping HTML tags, or responding with odd formatting along the lines of <code>h1:some text</code></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Generate some text in CKEditor. I even have a prepended instruction to use only well-formed HTML or plain text.</p> <p><img src="https://www.drupal.org/files/issues/2025-05-22/Screenshot%202025-05-22%20at%2010.09.31%20AM.png" alt="Screenshot of the malformed HTML response."></p> <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