mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-20 19:10:09 +03:00
2bbce8ebef
* 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
474 B
474 B
The FormatAbstract
class implements the FormatInterface
interface with basic functional behavior and adds common helper functions for new formats:
Functions
The sanitizeHtml
function
The sanitizeHtml
function receives an HTML formatted string and returns the string with disabled <script>
, <iframe>
and <link>
tags.
sanitize_html(string $html): string