Ejemplo n.º 1
0
 protected function renderQuick($xml)
 {
     $xml = $this->decodeSMP($xml);
     self::$attributes = array();
     $html = \preg_replace_callback('(<(?:(?!/)((?:A(?>BCNEWS|MAZON|UDIO(?>BOOM|MACK))|B(?>ANDCAMP|BCNEWS|LEACHERREPORT|REAK)|C(?:BSNEWS|N(?:BC|N(?>MONEY)?)|O(?>LLEGEHUMOR|MEDYCENTRAL|UB))|D(?>AILYMOTION|EMOCRACYNOW|UMPERT)|E(?>IGHTTRACKS|SPN)|F(?>ACEBOOK|LICKR|OXNEWS|UNNYORDIE)|G(?>AME(?>SPOT|TRAILERS)|ETTY|FYCAT|IST|LOBALNEWS|O(?>FUNDME|OGLE(?>DRIVE|PLUS|SHEETS)))|HU(?>DL|LU|MORTVNL)|I(?>GN|M(?>DB|GUR)|N(?>DIEGOGO|STAGRAM|TERNETARCHIVE)|ZLESENE)|K(?>HL|I(?>CKSTARTER|SSVIDEO))|LI(?>BSYN|VE(?>LEAK|STREAM))|M(?>AILRU|E(?>DIUM|TACAFE)|IXCLOUD|SNBC)|N(?>ATGEO(?>CHANNEL|VIDEO)|HL|PR|YTIMES)|ODDSHOT|P(?>ASTEBIN|ODBEAN|REZI)|R(?>DIO|EDDIT|UTUBE)|S(?>CRIBD|LIDESHARE|OUNDCLOUD|PO(?>RTSNET|TIFY)|T(?>ITCHER|R(?>AWPOLL|EAMABLE)))|T(?>E(?>D|AMCOCO)|HE(?>ATLANTIC|ONION)|INYPIC|MZ|RAILERADDICT|UMBLR|WIT(?>CH|TER))|USTREAM|V(?>K|BOX7|EVO|I(?>AGAME|D(?>EOMEGA|ME)|MEO|NE)|O(?>X|CAROO))|WS(?>J|HH)|XBOX(?>CLIPS|DVR)|Y(?>AHOOSCREEN|OU(?>KU|TUBE))|ZIPPYSHARE))(?: [^>]*)?>.*?</\\1|(/?(?!br/|p>)[^ />]+)[^>]*?(/)?)>)', array($this, 'quick'), \preg_replace('(<[eis]>[^<]*</[eis]>)', '', \substr($xml, 1 + \strpos($xml, '>'), -4)));
     return \str_replace('<br/>', '<br>', $html);
 }
Ejemplo n.º 2
0
 protected function renderQuick($xml)
 {
     self::$attributes = array();
     $html = \preg_replace_callback('(<(?:((?:A(?>BCNEWS|MAZON|UDIO(?>BOOM|MACK))|B(?>ANDCAMP|BCNEWS|LIP|REAK)|C(?:BSNEWS|N(?:BC|N(?>MONEY)?)|O(?>L(?>BERTNATION|LEGEHUMOR)|MEDYCENTRAL|UB))|D(?>AILY(?>MOTION|SHOW)|UMPERT)|E(?:IGHTTRACKS|SPN(?>DEPORTES)?)|F(?>ACEBOOK|LICKR|OXNEWS|UNNYORDIE)|G(?>AME(?>SPOT|TRAILERS)|ETTY|FYCAT|IST|LOBALNEWS|O(?>FUNDME|OGLE(?>PLU|SHEET)S)|ROOVESHARK)|HU(?>LU|MORTVNL)|I(?>GN|M(?>DB|GUR)|N(?>DIEGOGO|STAGRAM|TERNETARCHIVE)|ZLESENE)|K(?>HL|ICKSTARTER)|LIVELEAK|M(?>AILRU|E(?>DIACRUSH|TACAFE)|IXCLOUD|SNBC)|N(?>ATGEO(?>CHANNEL|VIDEO)|YTIMES)|P(?>ASTEBIN|ODBEAN|REZI)|R(?>DIO|UTUBE)|S(?>CRIBD|LIDESHARE|OUNDCLOUD|PO(?>RTSNET|TIFY)|TRAWPOLL)|T(?>E(?>D|AMCOCO)|HE(?>ATLANTIC|ONION)|INYPIC|MZ|RAILERADDICT|WIT(?>CH|TER))|USTREAM|V(?>K|BOX7|EVO|I(?>AGAME|D(?>EOMEGA|ME)|MEO|NE)|OCAROO|UBE)|WS(?>J|HH)|XBOX(?>CLIPS|DVR)|Y(?>AHOOSCREEN|OU(?>KU|TUBE))))(?: [^>]*)?(?:/|>.*?</\\1)|(/?(?!br/|p>)[^ />]+)[^>]*)>)', array($this, 'quick'), \preg_replace('(<[eis]>[^<]*</[eis]>)', '', \substr($xml, 1 + \strpos($xml, '>'), -4)));
     return \str_replace('<br/>', '<br>', $html);
 }