/**
* Parses text into shortcodes.
*
* @param string $input A text containing Shortcodes
*
* @return array Returns array of parsed shortcodes.
*
* @access public
*/
public function parseText(string $input): array
Examples
use Thermage\Thermage;
use Thunder\Shortcode\Shortcode\ShortcodeInterface;
use function strings;
$shortcodes = Thermage::getShortcodes();
$shortcodesCollection = $shortcodes->parseText('[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.