Last active
April 14, 2016 10:18
-
-
Save remcotolsma/be17c7d01fb6e3b41d54bff6ca2afeb6 to your computer and use it in GitHub Desktop.
Search for HTML entities in PHP files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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