Skip to content

Replace EscapeUtils.escape_html with CGI.escape_html#365

Merged
gjtorikian merged 1 commit into
gjtorikian:mainfrom
ramhoj:use-cgi-escape-html
Jul 18, 2022
Merged

Replace EscapeUtils.escape_html with CGI.escape_html#365
gjtorikian merged 1 commit into
gjtorikian:mainfrom
ramhoj:use-cgi-escape-html

Conversation

@ramhoj

@ramhoj ramhoj commented Jul 18, 2022

Copy link
Copy Markdown

EscapeUtils.escape_html was deprecated in brianmario/escape_utils@0da0c0a and later removed.

Regarding drop of / escape please see the above commit: “there's no reason to escape for slashes / in 2022.”

This commit makes the test suite green again.

EscapeUtils.escape_html was deprecated in
0da0c0a80017a18b2e007921782e83c8b94e6c41 and later removed.

Regarding drop if / escape please see
0da0c0a80017a18b2e007921782e83c8b94e6c41:
“there's no reason to escape for slashes `/` in 2022.”

This commit makes the test suite green again.
@gjtorikian

Copy link
Copy Markdown
Owner

Cool. Thank you!

@gjtorikian
gjtorikian merged commit 03ae30d into gjtorikian:main Jul 18, 2022
@ramhoj

ramhoj commented Jul 18, 2022

Copy link
Copy Markdown
Author

Thank you @gjtorikian for the quick merge! :)

@ramhoj
ramhoj deleted the use-cgi-escape-html branch July 18, 2022 16:22
@brettchalupa

Copy link
Copy Markdown

Would it be possible to get a new gem release cut in the 2.x series with this change included? It'll help address these deprecation warnings when using the gem: EscapeUtils.escape_html is deprecated. Use GCI.escapeHTML instead, it's faster. Thank you!

brettchalupa added a commit to brettchalupa/graphql-docs that referenced this pull request Oct 14, 2022
… being deprecated

It can be removed once
gjtorikian/html-pipeline#365 is released in a
gem. It may be possible to remove escape_utils at that point too.

Temporarily relieves this warning:

```
EscapeUtils.escape_html is deprecated. Use GCI.escapeHTML instead, it's faster
```
@gjtorikian

Copy link
Copy Markdown
Owner

Sure, 2.14.3 has been released with this change.

@brettchalupa

Copy link
Copy Markdown

@gjtorikian Thanks!

brettchalupa added a commit to brettchalupa/graphql-docs that referenced this pull request Oct 14, 2022
```
EscapeUtils.escape_html is deprecated. Use GCI.escapeHTML instead, it's faster
```

v2.14.3 has a fix to address that warning, so we want that as the
minimum version so people don't see that when generating their docs. See
gjtorikian/html-pipeline#365 for reference.

Remove stricter pinning of `escape_utils` since we can use newer
version.
brettchalupa added a commit to brettchalupa/graphql-docs that referenced this pull request Oct 14, 2022
```
EscapeUtils.escape_html is deprecated. Use GCI.escapeHTML instead, it's faster
```

v2.14.3 has a fix to address that warning, so we want that as the
minimum version so people don't see that when generating their docs. See
gjtorikian/html-pipeline#365 for reference.

Remove stricter pinning of `escape_utils` since we can use newer
version.
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