From 5ca46399f111a8beda05bf99fc2c56e5c3076498 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 15 Dec 2022 16:02:14 -0800 Subject: [PATCH] Add NEWS entries about CGI and ERB [ci skip] --- NEWS.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/NEWS.md b/NEWS.md index 9e3d1e9a9c..98adab1dc8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -394,8 +394,19 @@ Note: We're only listing outstanding class updates. ## Stdlib updates +* CGI + + * `CGI.escapeURIComponent` and `CGI.unescapeURIComponent` are added. + [[Feature #18822]] + * ERB + * `ERB::Util.html_escape` is made faster than `CGI.escapeHTML`. + * It no longer allocates a String object when no character needs to be escaped. + * It skips calling `#to_s` method when an argument is already a String. + * `ERB::Escape.html_escape` is added as an alias to `ERB::Util.html_escape`, + which has not been monkey-patched by Rails. + * `ERB::Util.url_encode` is made faster using `CGI.escapeURIComponent`. * `-S` option is removed from `erb` command. * FileUtils @@ -698,6 +709,7 @@ The following deprecated APIs are removed. [Feature #18798]: https://bugs.ruby-lang.org/issues/18798 [Feature #18809]: https://bugs.ruby-lang.org/issues/18809 [Feature #18821]: https://bugs.ruby-lang.org/issues/18821 +[Feature #18822]: https://bugs.ruby-lang.org/issues/18822 [Feature #18824]: https://bugs.ruby-lang.org/issues/18824 [Feature #18832]: https://bugs.ruby-lang.org/issues/18832 [Feature #18925]: https://bugs.ruby-lang.org/issues/18925