mirror of
https://github.com/friendica/friendica
synced 2025-04-25 18:30:11 +00:00
use microformat to mark html from [embed] tag, convert html with oembed microformat to [embed] tag
This commit is contained in:
parent
6ea87223d3
commit
49ea05b8ff
3 changed files with 44 additions and 5 deletions
|
@ -94,7 +94,7 @@ function bbcode($Text) {
|
|||
$Text = preg_replace("/\[youtube\](.+?)\[\/youtube\]/", '<object width="425" height="350" type="application/x-shockwave-flash" data="http://www.youtube.com/v/$1" ><param name="movie" value="http://www.youtube.com/v/$1"></param><!--[if IE]><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350" /><![endif]--></object>', $Text);
|
||||
|
||||
// oembed tag
|
||||
$Text = oembed_bbcode($Text);
|
||||
$Text = oembed_bbcode2html($Text);
|
||||
|
||||
call_hooks('bbcode',$Text);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue