mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-24 21:28:21 +03:00
964 B
964 B
The FormatAbstract
class implements the FormatInterface
interface with basic functional behavior and adds common helper functions for new formats:
Functions
The setContentType
function
The setContentType
function receives a string defining the content type for the HTML header and must return the object instance.
setContentType(string): self
The callContentType
function
The callContentType
function applies the content type to the header data and must return the object instance.
callContentType(): self
The sanitizeHtml
function
The sanitizeHtml
function receives an HTML formatted string and returns the string with disabled <script>
, <iframe>
and <link>
tags.
sanitizeHtml(string $html): string