sforkowany z mirror/friendica
Remove attachment on plaintext conversion
rodzic
c06331e690
commit
db90e3bf25
|
@ -437,6 +437,9 @@ class BBCode
|
|||
$text = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/ism", ' $2 ', $text);
|
||||
$text = preg_replace("/\[img.*?\[\/img\]/ism", ' ', $text);
|
||||
|
||||
// Remove attachment
|
||||
$text = self::removeAttachment($text);
|
||||
|
||||
$naked_text = HTML::toPlaintext(self::convert($text, false, 0, true), 0, !$keep_urls);
|
||||
|
||||
return $naked_text;
|
||||
|
|
Ładowanie…
Reference in New Issue