title: Strip HTML and Shortcodes from wordpress that uses Fusion Builder
body: <p>First thing is i'm using Wordpress > Avada Theme > and Fusion Core Plugin.</p>
  
  <p>What i want to do is strip the content of any post down to a few characters. And what i have works with almost everything minus, post content that uses the Fusion Core plugin.</p>
  
  <p>Here is my function that should get the excerpt and shrink it down.</p>
  
  <pre><code>function get_my_excerpt_by_id($post_id, $length, $strip_html)
  {   
      if(!$length)        
        $excerpt_length = 35;     
      else        
        $excerpt_length = $length;
  
      if(!isset($strip_html) || $strip_html == true)      
        $strip_html = true;
  
      $the_post = get_post($post_id); //Gets post ID
      $the_excerpt = apply_filters('the_content',$the_post-&gt;post_content); //Gets post_content to be used as a basis for the excerpt
  
      if($strip_html == true)
          $the_excerpt = strip_tags(strip_shortcodes($the_excerpt)); //Strips tags and images
  
      $words = explode(' ', $the_excerpt, $excerpt_length + 1);
  
      if(count($words) &gt; $excerpt_length) :
          array_pop($words);
          array_push($words, '…');
          $the_excerpt = implode(' ', $words);
      endif;
  
      return $the_excerpt; 
  }
  </code></pre>
  
  <p>So this works like a charm EXCEPT if i'm using Fusion Core Plugin for one of the post types beccause then i get this</p>
  
  <p>'.fusion-fullwidth-4 { padding-left: 0px !important; …'</p>
  
  <p>Any idea why its not stripping the shortcodes and css and html? Although in looking at it, maybe its just the css? that is staying. Thank you!</p>
  
  <p>EDIT::
  SO it turns out that its just the css that stays. So now i have to figure out how to remove them. Everything after a period....</p>