2500 - Копия №2444 Schneider Electric. Интеграция API с РАЭК

parent 339dc612
...@@ -64,7 +64,7 @@ class Rss extends BaseObject ...@@ -64,7 +64,7 @@ class Rss extends BaseObject
$item $item
->title($model->title) ->title($model->title)
->link(Url::to(["/{$model->post->url}"], true)) ->link(Url::to(["/{$model->post->url}"], true))
->turboContent($model->text) ->turboContent(preg_replace('/ (class|id|style)=".*?"/', '', $model->text))
->pubDate($model->created_at) ->pubDate($model->created_at)
->appendTo($channel); ->appendTo($channel);
} }
......
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