Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(SITE_ID == "s1" or SITE_ID == "s2") {
- AddEventHandler("main", "OnEndBufferContent", "ChangeMyContent");
- function ChangeMyContent(&$content) {
- $search = array('/\>[^\S ]+/s', '/[^\S ]+\</s', '/(\s)+/s');
- $replace = array('>','<','\\1');
- $content = preg_replace($search, $replace, $content);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement