better_sjr icon indicating copy to clipboard operation
better_sjr copied to clipboard

Print warning message when unescaped JS is detected

Open carlosramireziii opened this issue 8 years ago • 0 comments

One of the most common errors in SJR templates is forgetting to escape your code for JavaScript.

To help alleviate this issue, we can try to detect unescaped render calls within any ERB tags and print a warning to the console.

  • [ ] Add config item to toggle behavior
  • [ ] Add documentation for this feature
  • [ ] Add code documentation to new classes
  • [ ] Bump gem version

carlosramireziii avatar Dec 20 '16 16:12 carlosramireziii