File "remove_noise.md"
Full Path: /var/www/html/wordpress/wp-content/plugins/wp-optimize/vendor/simplehtmldom/simplehtmldom/docs/HtmlDocument/remove_noise.md
File size: 738 bytes
MIME-type: text/plain
Charset: utf-8
```php
remove_noise ( string $pattern [, bool $remove_tag = false] )
```
Replaces noise in the document (i.e. scripts) by placeholders and adds the removed contents to `$this->noise`.
_Note_: Noise is replaced by placeholders in order to allow restoring the original contents. Placeholders take the form of `'___noise___1000'` where the number is increased by one for each removed noise.
| Parameter | Description |
|--------------|---------------------------------------------------------------------|
| `pattern` | A regular expression that matches the noise to remove. |
| `remove_tag` | Removes the entire match when enabled or sub-matches when disabled. |