We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa2176 commit 2809a54Copy full SHA for 2809a54
2 files changed
NEWS.md
@@ -1,7 +1,14 @@
1
# Change Log
2
3
-## Unreleased
4
-
+## 4.0.0
+
5
+* Optimize `ERB::Util.html_escape`
6
+ * No longer duplicate an argument string when nothing is escaped.
7
+ * This makes `ERB::Util.html_escape` faster than `CGI.escapeHTML` in no-escape cases.
8
+ * It skips calling `#to_s` when an argument is already a String.
9
+* Define `ERB::Escape.html_escape` as an alias to `ERB::Util.html_escape`
10
+ * `ERB::Util.html_escape` is known to be monkey-patched by Rails.
11
+ `ERB::Escape.html_escape` is useful when you want a non-monkey-patched version.
12
* Drop deprecated `-S` option from `erb` command
13
14
## 3.0.0
lib/erb/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
class ERB
- VERSION = '3.0.0'
+ VERSION = '4.0.0'
private_constant :VERSION
end
0 commit comments