Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redactor adds trailing slash to br elements (ie. <br />) #433

Open
dgsiegel opened this issue Oct 1, 2022 · 2 comments
Open

Redactor adds trailing slash to br elements (ie. <br />) #433

dgsiegel opened this issue Oct 1, 2022 · 2 comments
Labels

Comments

@dgsiegel
Copy link

dgsiegel commented Oct 1, 2022

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
@dgsiegel dgsiegel added the bug label Oct 1, 2022
@BlizzardWizzard
Copy link

Same problem with Craft 4.2.5.1 and Redactor 3.0.2.

@timstrawbridge
Copy link

I imagine this is for backwards compatibility with XHTML. The plugin may be agnostic toward the doc type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants