Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295192

The filter "Convert line breaks into HTML (i.e. <br> and <p>)" generate duplicated br tag after <br class='*' /> tag

$
0
0

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


Viewing all articles
Browse latest Browse all 295192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>