1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-04 23:57:29 +02:00

Fix header formatting

Roliga
2019-11-03 20:13:27 +01:00
parent 9bf46c9675
commit 4dd234afa6

@@ -5,9 +5,9 @@ The `FormatAbstract` class implements the [`FormatInterface`](FormatInterface) i
* [sanitizeHtml](#the-sanitizehtml-function) * [sanitizeHtml](#the-sanitizehtml-function)
* [array_trim](#the-array_trim-function) * [array_trim](#the-array_trim-function)
#Functions # Functions
##The `setContentType` function ## The `setContentType` function
The `setContentType` function receives a string defining the content type for the HTML header and must return the object instance. The `setContentType` function receives a string defining the content type for the HTML header and must return the object instance.
@@ -15,7 +15,7 @@ The `setContentType` function receives a string defining the content type for th
setContentType(string): self setContentType(string): self
``` ```
##The `callContentType` function ## The `callContentType` function
The `callContentType` function applies the content type to the header data and must return the object instance. The `callContentType` function applies the content type to the header data and must return the object instance.
@@ -23,7 +23,7 @@ The `callContentType` function applies the content type to the header data and m
callContentType(): self callContentType(): self
``` ```
##The `sanitizeHtml` function ## The `sanitizeHtml` function
The `sanitizeHtml` function receives an HTML formatted string and returns the string with disabled `<script>`, `<iframe>` and `<link>` tags. The `sanitizeHtml` function receives an HTML formatted string and returns the string with disabled `<script>`, `<iframe>` and `<link>` tags.
@@ -31,7 +31,7 @@ The `sanitizeHtml` function receives an HTML formatted string and returns the st
sanitizeHtml(string $html): string sanitizeHtml(string $html): string
``` ```
##The `array_trim` function ## 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) 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)