aboutsummaryrefslogtreecommitdiff
path: root/docs/08_Format_API/03_FormatAbstract.md
blob: cb206b855200740c04e62b7527a1c47f62b278f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
The `FormatAbstract` class implements the [`FormatInterface`](../08_Format_API/02_FormatInterface.md) interface with basic functional behavior and adds common helper functions for new formats:

* [sanitizeHtml](#the-sanitizehtml-function)

# Functions

## The `sanitizeHtml` function

The `sanitizeHtml` function receives an HTML formatted string and returns the string with disabled `<script>`, `<iframe>` and `<link>` tags.

```PHP
sanitize_html(string $html): string
```