/**
* Parse and processes text to replaces shortcodes.
*
* @param string $input A text containing Shortcodes
*
* @return string Returns parses and processed text.
*
* @access public
*/
public function parse(string $input): string
Examples
use Thermage\Thermage;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
use function strings;
$shortcodes = Thermage::getShortcodes();
$result = $shortcodes->parse('[b]Stay RAD![/b]');
Getting Started
Methods
- add Add shortcode handler.
- addEvent Add shortcode event handler.
- getFacade Get Shortcodes Facade.
- getTheme Get Shortcodes theme.
- parse Parse and processes text to replaces shortcodes.
- parseText Parses text into shortcodes.
- setTheme Set Shortcodes theme.
- stripShortcodes Strip shortcodes.