Skip to content

Instantly share code, notes, and snippets.

@ollyg
Last active September 2, 2019 21:11
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 ollyg/16680dba03c7a3d06646481c601f7502 to your computer and use it in GitHub Desktop.
Save ollyg/16680dba03c7a3d06646481c601f7502 to your computer and use it in GitHub Desktop.
search and fix unescaped TT variables
# find files
g grep -cP "% [a-z][a-z._\(\/\)']+ %" share/views/
# vim command
.,$s:\(% \l[a-z._('/)]\+\) %:\1 | hmtl_entity %:cgI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment