Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace EscapeUtils.escape_html with CGI.escape_html #365

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

ramhoj
Copy link

@ramhoj ramhoj commented Jul 18, 2022

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
Owner

Cool. Thank you!

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

ramhoj commented Jul 18, 2022

Thank you @gjtorikian for the quick merge! :)

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

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
Owner

Sure, 2.14.3 has been released with this change.

@brettchalupa
Copy link

@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