2627 - Арт Проект. Подключение турбо страниц для сайта task-on.com

parent af1c0da9
......@@ -61,6 +61,7 @@ class Rss extends BaseObject
->all();
foreach ($models as $model) {
$text = preg_replace('/ (class|id|style)=".*?"/', '', $model->text);
$text = preg_replace('/(<img([^>]+\.gif[^>]+)>)/', '', $text);
$text = preg_replace('/(<img[^>]+>)/', '<figure>$1</figure>', $text);
$item = new Item();
$item
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment