mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-05-19 08:40:21 -07:00
Update YouTube embed code
Strings inside 's don't need to escape anything except 's and \s.
This commit is contained in:
parent
c65927ad72
commit
fd7990a262
@ -536,7 +536,7 @@ function doreplace2($msg, $options='0|0'){
|
|||||||
$msg=preg_replace("'\[url\](.*?)\[/url\]'si", '<a href=\\1>\\1</a>', $msg);
|
$msg=preg_replace("'\[url\](.*?)\[/url\]'si", '<a href=\\1>\\1</a>', $msg);
|
||||||
$msg=preg_replace("'\[url=(.*?)\](.*?)\[/url\]'si", '<a href=\\1>\\2</a>', $msg);
|
$msg=preg_replace("'\[url=(.*?)\](.*?)\[/url\]'si", '<a href=\\1>\\2</a>', $msg);
|
||||||
$msg=str_replace('http://nightkev.110mb.com/justus_layout.css','about:blank',$msg);
|
$msg=str_replace('http://nightkev.110mb.com/justus_layout.css','about:blank',$msg);
|
||||||
$msg=preg_replace("'\[youtube\][a-zA-Z0-9_-]{11}\[/youtube\]'si", '<iframe src=\"https://www.youtube.com/embed/\\1\" style=\"width:480;height:270;\" frameborder=\"0\" allowfullscreen></iframe>', $msg);
|
$msg=preg_replace("'\[youtube\]([a-zA-Z0-9_-]{11})\[/youtube\]'si", '<iframe src="https://www.youtube.com/embed/\1" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>', $msg);
|
||||||
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user