Display single space between list items in answer/question browser field

The Anki browser shows single-line previews of the card contents in the answer and question fields. Newlines are replaced by spaces in the preview, which works well. But when the answer is a list, e.g.

<ul>
<li>Translation1</li>
<li>Translation2</li>
</ul>

the preview concatenates the words without spaces, so in the preview it’s displayed as:
Translation1Translation2.

It would be nice if the preview could have some logic to insert in some spaces like it does for newlines and display the preview as Translation1Translation2. I guess the current behavior is just a result of all html tags being stripped and thus not necessarily a bug. Fixing it would probably require some special cases and increase the code size compared to some generic “strip all html tags” code. Maybe special cases for other html elements such as table items might also be needed but I didn’t test that (don’t use tables).

Here’s a screenshot from my actual deck where you can see the missing space in MöbelHaushalt:

My Anki version is ⁨2.1.66 (cf16ce1d)⁩ with Python 3.11.5 Qt 6.5.2 PyQt 6.5.2.