Example #1
0
 private function do_parse($content)
 {
     global $wpv_sc;
     require_once 'parser.php';
     $content = stripslashes($content);
     $content = wpv_fix_shortcodes($content);
     try {
         $parser = new WPV_Editor_Parser($content, $wpv_sc);
         $tree = $parser->parse();
         return $this->html_from_tree_node($tree);
     } catch (Exception $e) {
         return '<span style="font: 14px / 18px sans-serif;">' . $e->getMessage() . '</span>';
     }
 }
 /**
  * enable any shortcodes in CF7
  * @param  string $form original html
  * @return string       parsed with do_shortcode
  */
 public static function shortcodes_in_cf7($form)
 {
     return do_shortcode(wpv_fix_shortcodes($form));
 }