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

<, >, and & contained in response #178

Open
donovanrost opened this issue May 6, 2020 · 2 comments
Open

<, >, and & contained in response #178

donovanrost opened this issue May 6, 2020 · 2 comments

Comments

@donovanrost
Copy link
Contributor

According to reddit docs

**response body encoding **
For legacy reasons, all JSON response bodies currently have <, >, and & replaced with <, >, and &, respectively. If you wish to opt out of this behaviour, add a raw_json=1 parameter to your request.

would it be possible to use this parameter to opt out of this legacy behavior?

@SupremeDeity
Copy link
Contributor

was thinking the same thing, because i encountered it yesterday. I had to use a replaceAll to replace the & with & so that the images load properly.

@SupremeDeity
Copy link
Contributor

#200 fixes this. Waiting for merge.

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

No branches or pull requests

2 participants