As the title says... when I enter newlines in the textarea for the message and send it as HTML mail, the line breaks get converted to <br> tags and are escaped (probably thanks to twig's autoescaping). As a result, the br tags are visible as plain text in the email instead of acting as line breaks. The setting "Allow HTML in personal messages" is off.

I would expect the module to either A) convert newlines to br tags and allow them in the HTML, or B) leave the newlines as they are so they will simply become spaces in the rendered HTML.

Comments

marcvangend created an issue. See original summary.

dww’s picture

Version: 8.x-3.x-dev » 8.x-2.x-dev

Confirmed. Easily reproducible. I'm tempted to call this major, since this is a very visible bug in the core functionality of the module, but I'll leave it at normal for now.

john.oltman’s picture

Assigned: Unassigned » john.oltman

  • john.oltman committed 79d1e3e on 8.x-2.x
    Issue #2999729: Line breaks in the message are converted to <br> and...
john.oltman’s picture


tags are no longer inserted into the Personal Message if the Personal Message field does not allow HTML

john.oltman’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.