Skip to content

Instantly share code, notes, and snippets.

@mustafauysal
Created Sep 13, 2013
Embed
What would you like to do?
please don't break me!
<?php
add_filter('the_content', 'remove_br_tags');
function remove_br_tags($content) {
return preg_replace('/<br(\s+)?\/?>/i', "\n", $content);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment