- Issue created by @tsquared212
- Status changed to Closed: works as designed
12 months ago 4:04pm 1 December 2023 - πΊπΈUnited States tsquared212 Chicago, IL
False alarm.
The issue I discovered was in part due to an old patch.
Sorry guys.
Some filter plugins appear to strip the closing slash off break (br) tags. This, in combination with the _filter_autop function causes extra break tags to be added to content.
use Drupal\Component\Utility\Html;
$testString = <<<EOS
<p>XYZ Corporation<br />
Marketing Dept<br />
PO Box 1234<br />
Anytown, 0H 12345-1234</p>
EOS;
echo "before: ${testString}\n" . PHP_EOL;
echo "after: " . Html::serialize(Html::load($testString)) . PHP_EOL;
Expected break tags to retain their XHTML-compliant structure post-filter.
Closed: works as designed
10.1 β¨
False alarm.
The issue I discovered was in part due to an old patch.
Sorry guys.