original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Put styles inline for campagne
  Used when sending cammpagne or test
docstring_tokens: Put styles inline for campagne Used when sending cammpagne or test