mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-05-08 08:15:41 +03:00
refactor: general code base refactor (#2950)
* refactor * fix: bug in previous refactor * chore: exclude phpcompat sniff due to bug in phpcompat * fix: do not leak absolute paths * refactor/fix: batch extensions checking, fix DOS issue
This commit is contained in:
parent
b042412416
commit
2bbce8ebef
45 changed files with 679 additions and 827 deletions
docs/08_Format_API
|
@ -82,7 +82,7 @@ getExtraInfos(): array
|
|||
The `getMimeType` function returns the expected [MIME type](https://en.wikipedia.org/wiki/Media_type#Common_examples) of the format's output.
|
||||
|
||||
```PHP
|
||||
getMimeType(): string
|
||||
parse_mime_type(): string
|
||||
```
|
||||
|
||||
# Template
|
||||
|
|
|
@ -9,5 +9,5 @@ The `FormatAbstract` class implements the [`FormatInterface`](../08_Format_API/0
|
|||
The `sanitizeHtml` function receives an HTML formatted string and returns the string with disabled `<script>`, `<iframe>` and `<link>` tags.
|
||||
|
||||
```PHP
|
||||
sanitizeHtml(string $html): string
|
||||
sanitize_html(string $html): string
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue