Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Last active April 14, 2016 10:18
Show Gist options
  • Save remcotolsma/be17c7d01fb6e3b41d54bff6ca2afeb6 to your computer and use it in GitHub Desktop.
Save remcotolsma/be17c7d01fb6e3b41d54bff6ca2afeb6 to your computer and use it in GitHub Desktop.
Search for HTML entities in PHP files.
grep --recursive --exclude-dir={node_modules,vendor} "&[^\s]*;" */*.php
grep --recursive --exclude-dir={bower_components,languages,node_modules,src,vendor} "&[^\s]*;" *.php
grep --recursive --include="*.php" --exclude-dir={bower_components,node_modules,vendor} "&[[:alnum:]]*;" .
// @see http://www.webdeveloper.com/forum/showthread.php?175987-RESOLVED-Regex-to-match-html-entities
// @see http://stackoverflow.com/a/186020
// @see https://gist.github.com/a1phanumeric/5346170
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment