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:----RRqi7JuV3VDwoZGPSdfcBBxXtVH+Ah6vK1QeuY770BYJfP55JhAgPmk/z1/tZXIEyG35Wp8t/0D15sDn/eLync3rhVsF2ELby+PthcjF0cejGuedL/ELpXogS6Zd3sfsYVnHrxoG2wGCJLiu9dDsWf80SuhOx4W2rr0kzVyUn+5Umzt2a8bSEcFBVPeEFelVZbuccqrZ6u1PE7EBtONwH08YdSfEF13+uI6/my4ad9xx1VUQNR/hxkNUap4VGkWPLVG0k7adq5WqCnc4SyE0V/JQbdcnuagiKPeW/92rfAL52x5dG6Uaw5OXZ1KfKXqvd9FFwORJ2aDLxWke07bAFJqC6pq1ie5TNbQoSzCRUBGYvo/PxjcpnxkBTjBBsNrs4MKJNjyj6hFtF9b34NjNQUwm2/hiivlxdAThill+gexi6QzHQaXj+xo3V6zzX98vMXMBL43RLEYikD0INiJSXOtJ/2m3AVQfoiItt3DDrzy6T94s9iJtWa7JWUwlecbEUpJ1wraAdvf4spbq5soDKtpmxUklJQDkU9XLweGHE4PGAq0Lh6/v4ZgpPCUtyxDblH+VS+Wo/Vo6IB5+nSb+lP3J1iVTw9l0dDWfqLOqzXtInEd4k9ztO5+hZCL4xoPK77+bQVYCM5hITETVfRqJ5TEnwVNi2hEKI3ct4HoKVmU=----ATTACHMENT:----NTk4ODAwODAyNzIyMjk0NyAxMjExMjA2MjgzMzE0Mjc3IDk1OTQzNzYyNjU0MDAwNjM=