Cannot stop wpautop from messing up my plug-in output
Here is one idea add_filter(‘the_content’,’remove_stuff’,99,1); function remove_stuff($content){ $from=array(“<p><script>”,”</script></p>”); $to=array(“<script>”,”</script>”); $content=str_replace($from,$to,$content); return $content; }