public function html($id)
    {
        libxml_use_internal_errors(true);

        $htmldoc = new InlineStyle(file_get_contents( url('campagne/'.$id)));
        $htmldoc->applyStylesheet($htmldoc->extractStylesheets());

        $html = $htmldoc->getHTML();
        $html = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $html);

        return $html;
    }
public function html($id)
    {
        libxml_use_internal_errors(true);

        $htmldoc = new InlineStyle(file_get_contents( url('campagne/'.$id)));
        $htmldoc->applyStylesheet($htmldoc->extractStylesheets());

        $html = $htmldoc->getHTML();
        $html = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $html);

        return $html;
    }
public function html ( $ id ) { libxml_use_internal_errors ( true ) ; $ htmldoc = new InlineStyle ( file_get_contents ( url ( 'campagne/' . $ id ) ) ) ; $ htmldoc -> applyStylesheet ( $ htmldoc -> extractStylesheets ( ) ) ; $ html = $ htmldoc -> getHTML ( ) ; $ html = preg_replace ( '#<script(.*?)>(.*?)</script>#is' , '' , $ html ) ; return $ html ; }
Put styles inline for campagne
Used when sending cammpagne or test
Put styles inline for campagne Used when sending cammpagne or test