Skip to content

Conversation

@p8
Copy link
Contributor

@p8 p8 commented Oct 14, 2025

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.

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.
@NateBrady23 NateBrady23 merged commit 5b03eb9 into TechEmpower:master Oct 14, 2025
4 checks passed
@p8 p8 deleted the ruby/erb-html-escape branch October 14, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants