Fixed #20221 -- Functions with mark_safe() can result in SafeText