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:----LXPqY/oGIEJ9o+XNKY1mwRxO2aPI0iwWSxeWb8WvxIETE1xFCrbL5256d1OSm27Fkln/mVsAIKvzaNawZnhQJj+Lwk4BsmhpXzlKMKPom5vDvy11SxP7693+LezHBluNDHfk9/1cPg5z6boC+D8KJbPIjO1EfEF3tX+9yDD+jiAoccN/kcIHwAyXF2ko6UXlTt90DfhxWwK1jdvp7nQ08hvddcKcJ3lEPJgYquT3183wcTXC59i/BGP2U2Rh7b3uRhSxpp2RLu7w9oLKETIRcLS982tsI4YqYiux7+o+4y+g/5EJ+oPA1mjcYcdSumAU0UweFj428OgqiYwMJwxS2fhurncrZcgvfDlyD2AoamJ4JD6YBREqsRZXXJFbnzlxdliDc8DbobaRAw5KUWeFtpKZsmR52GizSD9CXXlU50Qur26biDpDu0siWiUYAp0OIfi9E070G7DyhQa8M7ddyyNKf/H3n2HZy7OM3n5992cDfdUjw+R/LiE+O1JOjDpgygrZMBo1qBm5QH91O+nMM+MUqjVSt9lM3qEDp95AP47wiVuRRgs7IZw8VD6b+txfShmawA+gyU3Q3nmd3QL/zHtH361GhXdkQeOCA6f8YRYQf4uQzDz3c+BqFEx5S913/aVy6xC7VzguDwzCfLGg/8Jpivx83Wyr8fanIIRk1Mg=----ATTACHMENT:----MTI0NzQzNDI5NjI4MTI2NiA5MzM4Mzc3OTc0NjM1MjU4IDkzMjU1MTcyMjAyNjkwMTU=