Remove attachment on plaintext conversion
This commit is contained in:
@@ -437,6 +437,9 @@ class BBCode
|
|||||||
$text = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/ism", ' $2 ', $text);
|
$text = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/ism", ' $2 ', $text);
|
||||||
$text = preg_replace("/\[img.*?\[\/img\]/ism", ' ', $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);
|
$naked_text = HTML::toPlaintext(self::convert($text, false, 0, true), 0, !$keep_urls);
|
||||||
|
|
||||||
return $naked_text;
|
return $naked_text;
|
||||||
|
|||||||
Reference in New Issue
Block a user