После добавления

$text = preg_replace("!

!si", "", $object->teaser); $text = str_replace("\r", "", $text); <-- этой строки $text = str_replace("\n", "", $text); $text = str_replace('"', '\"', $text); все стало нормально :) Патчи писать не умею, извините :)

Comments

Romka’s picture

Status: Active » Closed (fixed)

Patch was applied.