Skip to content

Instantly share code, notes, and snippets.

@uploadcare-user
Created March 30, 2018 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uploadcare-user/ffc34c20d3e4fe0b9255285cf5cfbae9 to your computer and use it in GitHub Desktop.
Save uploadcare-user/ffc34c20d3e4fe0b9255285cf5cfbae9 to your computer and use it in GitHub Desktop.
Snippet, replacing symbols
<script>
window.__INITIAL_STATE__ = <%- JSON.stringify(initialState).replace(/</g, '\\u003c') %>;
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment