patches for youtube's change in link and embed formats, please test

This commit is contained in:
Friendika
2011-05-20 15:46:41 -07:00
parent 5f20925220
commit 0abf2f11c6
4 changed files with 19 additions and 1 deletions
+2
View File
@@ -26,6 +26,8 @@ function update_network_content(&$a) {
$text = preg_replace($pattern, $replace, $text);
$pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i";
$text = preg_replace($pattern, $replace, $text);
$pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
$text = preg_replace($pattern, $replace, $text);
echo str_replace("\t",' ',$text);