shortcode->getHandlers()->add('clearboth', function (ShortcodeInterface $sc) { // Get shortcode content and parameters $str = $sc->getContent(); $output = '
'; return $output; }); } }