Problem/Motivation

The reply message is authored using CKEditor5 (as provided by the Webform module through '#type' => 'webform_html_editor'), but the resulting HTML email body is escaped before being sent.

This leads to replies rendering as plain text with visible HTML tags, which is confusing for site builders and breaks expected webform_html_editor HTML abilities.

Steps to reproduce

  1. Enable webform_email_reply.
  2. Configure an email reply message using CKEditor formatting(e.g. bold text, links).
  3. Submit the webform and trigger the email reply.
  4. View the received email.

Proposed resolution

Ensure that HTML generated by CKEditor is treated as HTML-safe when building the email body, or otherwise align the text format handling so that formatted reply messages render correctly in HTML emails.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joelpittet created an issue. See original summary.

joelpittet’s picture

Status: Active » Needs review
martijn de wit’s picture

I don't know what happend in gitlab. I can see the commit from the other issue on this merge request.
The merge request is also targeted to 2.x and not to 3.x
Maybe you can create a new merge request targeted it to 3.x with your code ?

martijn de wit’s picture

I have changed the target of the merge request