Через truncated тоже удаляет только в приложении страниц
/**
* Removes HTML and optionally truncates content
*
* @param bool $oneLine If TRUE, will use spaces instead of line breaks. Useful if using a single line display.
* @param int|null $length If supplied, and $oneLine is set to TRUE, the returned content will be truncated to this length
* @return string
* @note For now we are removing all HTML. If we decide to change this to remove specific tags in future, we can use \IPS\Text\Parser::removeElements( $this->content() )
*/
static public function truncate( $content, $oneLine=false, $length=500 )
{
$content = static::removeElements( $content, array( 'div[class=my_spoiler]' ) );
return parent::truncate( $content, $oneLine, $length );
}
у меня уже мозг плавится, не понимаю как удалить в профиле и т.д.