Remove attachment on plaintext conversion
This commit is contained in:
parent
c06331e690
commit
db90e3bf25
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue