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:----D3tXgDLVlBhQXxyJMO0xspbLPDQTH/nWNmofnrlP/cPa4A9Q6Fgw/eJTF1mm7fsPQ8H3ZdYwHo4Ucl3sYRrSTuNUfv9RzQWMSUFgly+Vib87CyRYnPevEvuWIUgA4QkCltioyuQFBtpCnntxICQK4STOFZPWa6FuE8UNdrSa73MYT7Axw22FxQVZtpR8zESC/zhSaPnjZ9jeNNzG7vGZMQq1gF1eANKK3M5FDUSo5PfArHPAXsL+8DHVZw0zAwBMUOTivh5r87V5AAMzUx5DPnDqEIAUaw7JqYbrOD7qbwjIW8edP2R7DthM3nlKb9fzHfx6o0ljYBkAgJdn7eLviK8iqVJcpN/dXoQKqjw+speiKk5dH2fBvVj6/7AJ4TOqVZU8RmCW08gScfdDnaUzmR1KeHdJmNkuYNIaRxQRAKL2kz8XT6KpPF39++8+TfmXL2RTn73fzGfoSd0XCyD81EgTXEBlJ8CLRt4S5gAc9D4pBLKvppod50MoPUs5mS5+FzWqtDiXA2r+6I0iVf/TogvZA121JY66O012iBnh5WOwlLXcEfS62/69aKiFMLhPGuIYZp6bF4oodK6RLfASficTIU866UdvvfBqdRGkxGlU0+aUZDzPRY99P8uYS3v6BUTJE0z6sjCK/LNVLbipxISaKuEs6oAUeLj8hxb5DlY=----ATTACHMENT:----NDA4NjE4MjgwOTQ0NzI1MSA2NTM5NDQ1NzY2MzUzMjY0IDg4MzMxOTg5NTk5OTI2OTg=