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:----Z2O6i/9+S42uSRKHgqlH1hjrTwCaRrroqzrYlXqu3yPV2wL7VAQwxCfzhzfc/JT80e3lGTLuRTOVbpzUvJvxDv94Ayh6q16ILp0OnRIktZJOf/UcMhb/NQyZbh+je7d9G/0gYryLdDY9natFAqOZd1FqaqrPyKglWLiHDwzxWKQsIfbNt5VzQuyA7bPKekY6DcBOxr70C2n7HUB5pe4GyytWxJ7nLRTjL7vLF+LNvodEbTNckeBbPw3me70l/0HqgvxSPoU/ualdhPbU6uNn8YZZrboa5WtBn0ko1cyjo/8g2OkqTqxAStT4sHlIbqFqTskTaxwxa33XpxQtBIS87wteMRhW3m2mUl1uzFjwhU9kiZfFs8Dg55gK6Y4IEjANwLQpFjNPb9LQoTdxolKPRrH7rky4+cAarilG4Zj62U3eFgzdgm6wUM+03BKtcTFSUlKQISg3opKJ2aDjjOXd/jUW5d2EdP2AViymy93t/MAJw15MfWnxuF06e2BrvUkI43aKVm9H8zTpwufji2McMSRk1L9K9+1YoasJLiPTUAIU/nVg7vT7jZQaaqAbBNc7yyQmHyHmes6BXEw9kYtJ3EKQimeeNgUzDlQ6duTDI/MnPRvyN65KqFmEzvxPE2iicq5YItxIRlU2cfal6U31fh1Wa1A5X/MZ7FSXZYgD4TA=----ATTACHMENT:----MjA0NjEyOTc5MjgwMDIxMCA0NTA3NDMxMTA3NDM3MDUyIDU2ODYyNjAzNzQ2NjY1NDI=