We want to have different behavior for br tag for different device, so we're using
in our body text area.
Reproduce steps:
1.Go to /admin/config/content/formats/full_html, Enable filter "Convert line breaks into HTML (i.e.
and
)" under section "Enabled filters"
2.Add below html to node's body field with text format "Full HTML" and save
First Line<br />
Second Line<br class='second' />
Third line
3.View the node page and check view source, will find a duplicated br tag after
tag
<p>Hello <br>
Second line<br class="second"><br>
Third line</p>
Expect:
Should render what we input and remove the extra
tag
<code><p>Hello <br>
Second line<br class="second">
Third line</p>
What happened instead?
We're getting an extra
tag after