This solves transient failures when a text contains HTML-escapable characters such as '.
'
Closes #20121 (closed)