Exemplo n.º 1
0
 /**
  * @param $text
  * @return string
  */
 public static function removeShortcodeTags($text)
 {
     if (!class_exists('Thunder\\Shortcode\\Processor\\Processor')) {
         throw new \RuntimeException("Please add \"thunderer/shortcode\": ~0.5 to composer.json first");
     }
     $processor = new ShortcodeProcessor();
     return $processor->removeShortcodeTags($text);
 }
Exemplo n.º 2
0
 /**
  * @param $text
  * @return string
  */
 public static function removeShortcodeTags($text)
 {
     $processor = new ShortcodeProcessor();
     return $processor->removeShortcodeTags($text);
 }