[ruby] Use ERB::Escape for html escaping (#10176)
It should be slight faster as it doesn't allocate a new string when
nothing needs to be escaped.
https://github.com/ruby/erb/blob/6a5729b7e291e30432f3955e443cc3e6c9215b60/ext/erb/escape/escape.c
Also Rack::Utils delegates to ERB if it's present.
Co-authored-by: 尤雨东 <[email protected]>