Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use erb/escape for faster html escaping if available
ERB::Escape#html_escape will return input strings as is without allocating new strings if no escaping is needed, which can result in better performance for such strings. This shouldn't cause any issues in Erubi, because the result of Erubi.h is only used to concat to an existing string.
- Loading branch information
1 parent
5bbda87
commit 5938072
Showing
2 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters