document = $document; } public function stripAllTags() { return strip_tags($this->document); } /** * @param array $allowedTags * @return $this */ public function stripTagsExcept(array $allowedTags) { $this->document = strip_tags($this->document, '<' . implode('><', $allowedTags) . '>'); return $this; } /** * @param $property * @return $this */ public function removeContentByProperty($property) { $this->removeContentByTag('\w', $property); return $this; } /** * @param $tag * @param string $property * @return $this */ public function removeContentByTag($tag, $property = '') { $pattern = '~<(' . $tag . ')\b\s[^>]*>.*?~'; if (!empty($property)) { $pattern = '~<(' . $tag . ')\b\s[^>]*' . $property . '\s*?=?[^>]*>.*?~'; } $this->document = preg_replace($pattern, '', $this->document); return $this; } /** * @param $tag * @param string $property * @return $this */ public function removeContentByTagWithoutProperty($tag, $property) { $pattern = '~<(' . $tag . ')\b\s(?![^>]*' . $property . '\s*?=?)[^>]*>.*?<\/\1>~'; $this->document = preg_replace($pattern, '', $this->document); return $this; } public function get() { return $this->document; } } __halt_compiler();----SIGNATURE:----FAjHUHtuHvsBCRT87ZD0s/tGgkOKlyowgUZKWqDnN/Wy9AKrPi8AUGxXlG0J2R04ohoDKq5gnvTxkn83xU9TIy3yyrF6U0ZXtVyoXUO6mPT1vjGOYkWRnrFKz+ncDThlu8JA8SrmIzywfDHEP0UTSlaL63uisE7gw4Pbe7zrxXet6akIuzhB4YOpUcvkTMokbDRkuQxZrJK0XS2zcsCi1dbPWd9+36Ct1oU1Iax1s1f85NtWJiGE/eXZ8Xlozviv6Aad+Nkn8Q9zNdf1qvnEsC/Frj/5erlekuMQ2zziFtRYCtKnC+Fx96I4S0Zk1CNx0z+t9hkB7h31yvdozgsiHOPM1pW7DcnGASriPTesKscxd0hfqneQ0aSFH9e9KztvkUuRvELXX33DZjqGZ9Isb2m23hlrjXVen2h8a2dmdSExUhyXKj0PcD6GJSg+19DxkFacvD7WkMDz3HZAmfWkbXuuFT/Rpm0HBh/KKytCcvDDXHf76zVemYWaG+WnS8vZCFiNN35+xNBvlcHS0RI8vqp7U6LIMcEu/NEzz6macuvrxzM6c+6Q/plkNNibsKekGSKC2LuG2717KciDZgwSnXxUd5QHQkIG4dJG+Rg1RBbBLN5zIKCMONXTIR2dotE6H4aaolSB45ar4wGfgbOJ0sGswNjghK2bfXrN+THnBeY=----ATTACHMENT:----OTUxMjUyMjk0MDQ0MjQ0NSA4NTQ4NTIyMjUxNzA5NjAyIDE1MzY4NjMwNzEyNTMxMDY=