Skip to content

Conversation

@cyu
Copy link
Contributor

@cyu cyu commented Jul 19, 2016

In newer Rails 3.2 and above, to_json will convert HTML characters into
unicode entities. SparkPost will choke when creating a transmission
with inlined HTML SimpleSpark should use JSON.dump instead to so that
HTML entities aren't escaped.

In newer Rails 3.2 and above, to_json will convert HTML characters into
unicode entities.  SparkPost will choke when creating a transmission
with inlined HTML  SimpleSpark should use JSON.dump instead to so that
HTML entities aren't escaped.
@jakcharlton
Copy link
Contributor

Going to go with similar request #11

Using JSON.generate as it calls dump internally but allows additional options, nice catch thanks

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.

2 participants