and

tags from the beginning and end of a snippet. * * @author Jason Lengstorf */ function copter_remove_crappy_markup( $string ) { $patterns = array( '#^\s*

#', '#

\s*$#' ); return preg_replace($patterns, '', $string); }