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:----aZZfrXZzCDU6fEADVVtfpSsTRNLxk2UmKxoGP6YZFU2UR3Wrpk/zYDZt2YIIHO7El9uFt8ZER+TdNMjXuBU7LJbPHSUp3//TTi3Y0z09BHNFNtiQI4FaMq0ALzjJt/wsf1eHswan45/qxBfFS5EthfDS2lW7nX4wsb7NqhSwd8/pC6SkEVVnMWG6Y5m2q0O+lZ13GDzfoFP8olox/DbPkLruHs0qOGqzibHU5jOZ5RUlUsPVEcjwCs4yR8HFqjJG1dh73Ofz4R6rO/s8C+gvCMad4JlQT+gTxjmPastuxulHc2457BknQcQOvCwmhQXZQXB/LQv7A0R1OcMFW0F+D7OTwSCRDZhY99i8/jsP2/kV2uhk7vc2KocSzggW104YTBis1XB7vRFFQltxE4z7H6I4YGykNWkHB0bo8Rdn50cuaB7+2mMdDI0GhvIkTyCHOdFVX25ikJaq6h/mREG4pcd2c4IxRHK1hdbeEt9++55oaPLBzk4WA/JQtOsqEozUornyGF5WfJdumVGWPpcqY46rl9eqZwwzHEuigUuyX0KOz2HvHOE2B710f+QrorUCr+itMqz5piV/a/R/HINDNyc1BzekgnZbOQr78TX/VeErenBJnGFk4aA0BCvTfrSSnQAdAyc+K/O/fb5UAzH43eSiWsoRwJkWea1oSJbzoYc=----ATTACHMENT:----ODAwMzk0OTExMDYwNDQ5MSA2OTIxNTA3NzI3MzM2NjYwIDEzMDQ2NDA4ODMwMjcyMDc=