self::tagToBBCode($doc, 'b', [], '[b]', '[/b]');
self::tagToBBCode($doc, 'i', [], '[i]', '[/i]');
self::tagToBBCode($doc, 'u', [], '[u]', '[/u]');
+ self::tagToBBCode($doc, 's', [], '[s]', '[/s]');
+ self::tagToBBCode($doc, 'del', [], '[s]', '[/s]');
+ self::tagToBBCode($doc, 'strike', [], '[s]', '[/s]');
self::tagToBBCode($doc, 'big', [], "[size=large]", "[/size]");
self::tagToBBCode($doc, 'small', [], "[size=small]", "[/size]");
public static function toPlaintext($html, $wraplength = 75, $compact = false)
{
- global $lang;
-
$message = str_replace("\r", "", $html);
$doc = new DOMDocument();