Created
July 12, 2017 16:43
-
-
Save ravixp/2badd29d51a29ba2e39040524f361cd3 to your computer and use it in GitHub Desktop.
PHP: Remove all scripts from head including script
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
| <?php $head_noscript = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $head_text); ?> | |
| <?php echo $head_noscript; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment