mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-26 08:48:13 +08:00
fix #89
This commit is contained in:
parent
c1fcf73a1a
commit
5d86c1342c
@ -1515,7 +1515,7 @@ function html_tag_parser($content) {
|
|||||||
if(!is_feed()) {
|
if(!is_feed()) {
|
||||||
$content=preg_replace(
|
$content=preg_replace(
|
||||||
'/<img(.+)src=[\'"]([^\'"]+)[\'"](.*)>/i',
|
'/<img(.+)src=[\'"]([^\'"]+)[\'"](.*)>/i',
|
||||||
"<img\$1class=\"lazyload\" data-src=\"\$2\" src=\"https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"\$3 >\n<noscript>\$0</noscript>",
|
"<img $1 class=\"lazyload\" data-src=\"$2\" src=\"https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\" $3 >\n<noscript>$0</noscript>",
|
||||||
$content
|
$content
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user