Remove explicit regexp constructor calls from text helper
Sacrifice performance due to HTML space normalization in HTML parser