Avoid building a new regexp at every escape

This uses prebuild Regexp instead of rebuildin one on every call to
the escape function in the tag helper.
Merge remote-tracking branch 'upstream/master' into super-admin