Escape Content with Line Breaks

Hello!

I am currently trying to escape content from a textfield, but there is the problem that the customer has used linebreaks in the form of “<br>” tags in many places.

If I now use

kirbytextinline(['markdown' => ['safe' => true]])

the <br> tags are displayed visibly on the website.

Since I have to work up the content folder relatively spontaneously for the live page, I wondered if there is a possibility to escape the content of the text field, but leave the <br> tags untouched or convert them to “\n” or similar beforehand.

Thank you very much! :blush: