Why not use a HTML parser?
https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/
I use this html parser: interweave.dev but it returns that part like this
This is a renderer, what's the issue with it that you're trying to solve?
Oh, it's rendering as code?
it doesn't get the newlines
You need dotAll
Обсуждают сегодня