mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 02:24:35 +02:00
[core] extract HTMLUtils methods to make them functions
Methods displayBridgeCard, sanitize, defaultImageSrcTo are now functions in lib/html.php getHelperButtinsFormat and getFormHeader are now anonymous functions defined in displayBridgeCard Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
f1fb95b257
commit
747be13849
7 changed files with 299 additions and 317 deletions
|
@ -27,9 +27,7 @@ class CourrierInternationalBridge extends BridgeAbstract{
|
|||
|
||||
$page = getSimpleHTMLDOM($item['uri']);
|
||||
|
||||
$cleaner = new HTMLSanitizer();
|
||||
|
||||
$item['content'] = $cleaner->sanitize($page->find("div.article-text")[0]);
|
||||
$item['content'] = sanitize($page->find("div.article-text")[0]);
|
||||
$item['title'] = strip_tags($article->find(".title")[0]);
|
||||
|
||||
$dateTime = date_parse($page->find("time")[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue