<style>
.outer {
white-space: pre-wrap;
}
</style>
<span class=outer> should<span>not overlap</span></span>