You are here

function bs_fix_shortcodes in Bootstrap 3 shortcodes 7

File

includes/functions.php, line 3

Code

function bs_fix_shortcodes($content) {
  $array = array(
    '<p>[' => '[',
    ']</p>' => ']',
    ']<br />' => ']',
    ']<br>' => ']',
  );
  $content = strtr($content, $array);
  return $content;
}