Skip to content

[ruby/rage] Use ERB::Escape for html escaping#10175

Merged
NateBrady23 merged 1 commit intoTechEmpower:masterfrom
p8:rage/erb-html-escape
Oct 14, 2025
Merged

[ruby/rage] Use ERB::Escape for html escaping#10175
NateBrady23 merged 1 commit intoTechEmpower:masterfrom
p8:rage/erb-html-escape

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

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
@NateBrady23 NateBrady23 merged commit 6f9b7a5 into TechEmpower:master Oct 14, 2025
4 checks passed
@p8 p8 deleted the rage/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.

2 participants