<!DOCTYPE html>
<style>
    .quote { color: red; }
    .line { position: absolute; top: 50px; left: 10px; }
</style>

" "

<span class="line">
    <span class="quote">'</span>Should not crash or assert and all four quotes should be displayed.'
</span>
