mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
begin plugin api
This commit is contained in:
parent
1a9f8eacc4
commit
ddec422de6
5 changed files with 80 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
require_once('library/HTML5/Parser.php');
|
||||
|
||||
|
||||
function parse_url_content(&$a) {
|
||||
|
||||
$url = trim($_GET['url']);
|
||||
|
@ -16,13 +17,13 @@ function parse_url_content(&$a) {
|
|||
echo '';
|
||||
killme();
|
||||
}
|
||||
|
||||
|
||||
if(! $s) {
|
||||
echo sprintf($template,$url,$url,'');
|
||||
killme();
|
||||
}
|
||||
|
||||
$dom = HTML5_Parser::parse($s);
|
||||
$dom = @HTML5_Parser::parse($s);
|
||||
|
||||
if(! $dom)
|
||||
return $ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue