-
-
Save Sentinel-7/e9c5f930a564bfc4775025a09e5dd495 to your computer and use it in GitHub Desktop.
MODX убрать все type="text/javascript"
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 | |
switch ($modx->event->name) { | |
case 'OnWebPagePrerender': | |
$output = &$modx->resource->_output; // перехватываем содержимое страницы | |
$output = str_replace(' type="text/javascript"',"",$output); | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment