1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-16 14:36:23 +02:00

Deploying to gh-pages from @ RSS-Bridge/rss-bridge@fb501652d5 🚀

This commit is contained in:
dvikan
2022-06-07 16:06:13 +00:00
parent 5ddf8adfc6
commit 15b00f676c
40 changed files with 40 additions and 64 deletions

View File

@ -93,7 +93,7 @@
<div class="Page__header">
<h1><a href="../Format_API/index.html">Format API</a> <svg class="Page__header--separator" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 477.175 477.175"><path d="M360.73 229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1 0s-5.3 13.8 0 19.1l215.5 215.5-215.5 215.5c-5.3 5.3-5.3 13.8 0 19.1 2.6 2.6 6.1 4 9.5 4 3.4 0 6.9-1.3 9.5-4l225.1-225.1c5.3-5.2 5.3-13.8.1-19z"/></svg> <a href="../Format_API/FormatAbstract.html">FormatAbstract</a></h1>
<span class="ModifiedDate">
June 4, 2022 at 11:52 AM </span>
June 7, 2022 at 9:06 AM </span>
<span class="EditOn">
<a href="https://github.com/RSS-Bridge/rss-bridge/tree/master/docs/08_Format_API/03_FormatAbstract.md" target="_blank">
Edit on GitHub </a>
@ -104,24 +104,10 @@
<p>The <code>FormatAbstract</code> class implements the <a href="FormatInterface.html"><code>FormatInterface</code></a> interface with basic functional behavior and adds common helper functions for new formats:</p>
<ul>
<li>
<a href="#the-setcontenttype-function">setContentType</a>
</li>
<li>
<a href="#the-callcontenttype-function">callContentType</a>
</li>
<li>
<a href="#the-sanitizehtml-function">sanitizeHtml</a>
</li>
</ul>
<h1><a id="functions" href="#functions" class="Permalink" aria-hidden="true" title="Permalink">#</a>Functions</h1>
<h2><a id="the-setcontenttype-function" href="#the-setcontenttype-function" class="Permalink" aria-hidden="true" title="Permalink">#</a>The <code>setContentType</code> function</h2>
<p>The <code>setContentType</code> function receives a string defining the content type for the HTML header and must return the object instance.</p>
<pre><code class="language-PHP">setContentType(string): self
</code></pre>
<h2><a id="the-callcontenttype-function" href="#the-callcontenttype-function" class="Permalink" aria-hidden="true" title="Permalink">#</a>The <code>callContentType</code> function</h2>
<p>The <code>callContentType</code> function applies the content type to the header data and must return the object instance.</p>
<pre><code class="language-PHP">callContentType(): self
</code></pre>
<h2><a id="the-sanitizehtml-function" href="#the-sanitizehtml-function" class="Permalink" aria-hidden="true" title="Permalink">#</a>The <code>sanitizeHtml</code> function</h2>
<p>The <code>sanitizeHtml</code> function receives an HTML formatted string and returns the string with disabled <code>&lt;script&gt;</code>, <code>&lt;iframe&gt;</code> and <code>&lt;link&gt;</code> tags.</p>
<pre><code class="language-PHP">sanitizeHtml(string $html): string