mjmlio / mjml

MJML: the only framework that makes responsive-email easy
https://mjml.io
MIT License
16.72k stars 942 forks source link

when use html-attribute, <br> in <mjml-text> render error #2623

Closed xlnhaha closed 1 year ago

xlnhaha commented 1 year ago

Hi, like the image below show, in the green block, when i use html-attribute, the tag br in mjml-text will render several times, please help to solve it, thank you very much.

The correct render result should have no br tag after text 'aaa' in the blue block, but it has two extra br tag after text 'aaa' image

iRyusa commented 1 year ago

It's just a visual issue with codemirror and html. Just ignore it

Edit: didn't checked properly, use self closing version instead: <br /> mj-html-attributes need to reparse the HTML and might no behave properly if it encounter non closed tags.