redactor
redactor copied to clipboard
Redactor adds trailing slash to br elements (ie. <br />)
Description
When forcing manual line breaks in redactor fields, e.g.
foo
bar
baz
redactor will put a <br />
element in between them, e.g.
<p>foo<br />bar<br />baz</p>
I'd like to get rid of the trailing slash, as that's not recommended in HTML5.
Additional info
- Craft version: 3.7.55.2
- PHP version: 8.1.10
- Database driver & version: MySQL 10.5.16
- Plugins & versions: Redactor 2.10.10
Same problem with Craft 4.2.5.1 and Redactor 3.0.2.
I imagine this is for backwards compatibility with XHTML. The plugin may be agnostic toward the doc type.