Skip to content

Instantly share code, notes, and snippets.

@walterdavis
Created August 26, 2010 02:09
Show Gist options
  • Save walterdavis/550664 to your computer and use it in GitHub Desktop.
Save walterdavis/550664 to your computer and use it in GitHub Desktop.
$out = preg_replace_callback('/<pre>[\s\S]+?<\/pre>/m','strip_breaks_callback',$out);
$out = preg_replace_callback('/<table.*?>[\s\S]+?<\/table>/m','strip_breaks_callback',$out);
$out = preg_replace_callback('/<div class="code">[\s\S]+?<\/div>/m','strip_breaks_callback',$out);
$out = preg_replace_callback('/<ol>[\s\S]+?<\/ol>/m','strip_breaks_callback',$out);
$out = preg_replace_callback('/<ul>[\s\S]+?<\/ul>/m','strip_breaks_callback',$out);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment