mirror of
https://github.com/friendica/friendica
synced 2025-04-22 07:50:11 +00:00
Sanitize the OEmbed data before processing it
This commit is contained in:
parent
a76c00de66
commit
aa1882fd99
2 changed files with 12 additions and 2 deletions
|
@ -247,8 +247,7 @@ class OEmbed
|
|||
|
||||
$ret .= '</div>';
|
||||
|
||||
$ret = str_replace("\n", "", $ret);
|
||||
return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
|
||||
return str_replace("\n", "", $ret);
|
||||
}
|
||||
|
||||
public static function BBCode2HTML($text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue