mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-23 10:05:32 +03:00
Page:
FormatAbstract
Pages
Actions
Arrays
Authentication
Bridge API
BridgeAbstract
Cache API
CacheInterface
Casting
Classes
Coding style policy
Command Line Interface (CLI)
Constants
Custom Configuration
Customizations
Debug mode
Docker
Extended Bridges
FAQ
FeedExpander
Folder structure
For developers
For hosts
Format API
FormatAbstract
FormatInterface
Functions
Heroku Installation
Home
How can I contribute
How to create a new Bridge
How to create a new Cache
How to create a new Format
Indentation
Installation
Keywords
Maximum line length
Operators
Project goals
Public hosts
Pull request policy
RSS Bridge on PHP 5.4
Read queriedContext
Requirements
Screenshots
Strings
Structures
Technical Recommendations
The collectData function
The detectParameters function
The getContents function
The getDescription function
The getIcon function
The getInput function
The getMaintainer function
The getName function
The getSimpleHTMLDOM function
The getSimpleHTMLDOMCached function
The getURI function
The returnClientError function
The returnError function
The returnServerError function
Updating
Web server links
Whitelisting
Whitespace
XPathAbstract
const PARAMETERS
defaultLinkTo
if Statement
No results
3
FormatAbstract
Roliga edited this page 2019-11-03 20:13:27 +01:00
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
The array_trim
function
The array_trim
function receives an array of strings and returns the same array with all elements trimmed (like using the trim
function on all elements)
array_trim(array $elements): array
RSS-Bridge · Reconnecting the Web ·