mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-30 08:08:22 +03:00
14 lines
473 B
Markdown
14 lines
473 B
Markdown
|
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
|
||
|
sanitizeHtml(string $html): string
|
||
|
```
|