Open
Description
What problem does this address?
Sometimes my client edit text and make it bold.
However, they somehow manage to create nested strong
tags (I honestly don't know how but from my understanding they should't be able to when only using the editor). Because of this the variable font is rendered incorrectly.
Example
- First row: nested strong tags
- Second: manually removed to show you how the font should be rendered in Chrome (note the font-weight)
See: https://www.bittner-krull.de/produkte/rollout-planungstool/
What is your proposed solution?
The code should be cleaner by stripping strong tags / combining them to one if they are nested. And when one directly followed by another without any other characters in between.