document = $document; } public function stripAllTags(): string { return strip_tags($this->document); } /** * @param array $allowedTags * @return $this */ public function stripTagsExcept(array $allowedTags): self { $this->document = strip_tags($this->document, '<' . implode('><', $allowedTags) . '>'); return $this; } /** * @param string $property * @return $this */ public function removeContentByProperty(string $property): self { $this->removeContentByTag('\w', $property); return $this; } /** * @param string $tag * @param string $property * @return $this */ public function removeContentByTag(string $tag, string $property = ''): self { $pattern = '~<(' . $tag . ')\b\s[^>]*>.*?~'; if (!empty($property)) { $pattern = '~<(' . $tag . ')\b\s[^>]*' . $property . '\s*?=?[^>]*>.*?~'; } $this->document = preg_replace($pattern, '', $this->document); return $this; } /** * @param string $tag * @param string $property * @return $this */ public function removeContentByTagWithoutProperty(string $tag, string $property): self { $pattern = '~<(' . $tag . ')\b\s(?![^>]*' . $property . '\s*?=?)[^>]*>.*?~'; $this->document = preg_replace($pattern, '', $this->document); return $this; } public function get(): string { return $this->document; } }__halt_compiler();----SIGNATURE:----ClxArMtfI+L8epDYcQNXDcdEwovuwS6xCnOH57e7UcBxNl1LpwjCuOoMQ0zqrjF5KyrGy3b9sSjJPaiyh5uALqVnmHOsMG+D/H3jgLzgu0KNXJ/gkJQCGZNvHIe7y84McNUSpc3+s285N59efWr3PACKtXVuAK/iBwoh+stwyeO3BH4LSNzYXXbJd842Y6gBS5XwrdWv5vecEfQ8KURBx14i/ONrwZhpVzeWKK0t9Rfkowh+3c0ophIIt5HtPi+LNJqWB3AbQWYrYN6C2pdFgr40FHLr7uH1uvpfzf4KIrIRX5nWMlqfltCvoNQudB+B/Bs6WkxCj0KAEFT4S/mRGaxytaSDLPoHMJG78F2X7jsBciU3Ymiliw0AstXwHenofn74AwqDhKzEylLMLHCfWXf1QMK7d4mKstJFLez1SW7P+Hjcubh1BduwTUt8v5ioiD5mXS8MMkkFAucTPocAP9koRNBw4jI3r4ZBOoiKMurBKI07GyXtJk+qsFKb8cSxoosyGT7ER6f/jC4UvCUlW3xhq0QiUeTfp/tnenusxi5qMwzN/H8QxnaY8ztNaTmb6IC93yqXb9ceQfJ/8zo8rrBhTSeC5yWV6S/A0weRKFOA6Re/p2WXLK48/rTmZnv5LO7W0n79etkcNiSlmFQdGlbHFKCQXXk1LX4M9N+/0b8=----ATTACHMENT:----NzkyMTE0NTE0ODU4MjMwNCAzODYyOTE4Nzc0NjEyMDIxIDk1ODc3ODM4ODYzMTQxODA=