Class ShortCodes
WordPress style ShortCodes This is taken from https://github.com/Badcow/Shortcodes where it was described as:
This is a port of WordPress' brilliant shortcode feature for use outside of WordPress. The code has remained largely unchanged
WordPress, source of the original code, wp-includes/shortcodes.php, is licensed under the GPL
Namespace: Xoops\Core\Text
Package: Xoops\Core\Text
Category: Sanitizer\ShortCodes
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Sam Williams sam@swilliams.com.au
Link: https://github.com/Badcow/Shortcodes
Link: https://github.com/WordPress/WordPress/blob/master/wp-includes/shortcodes.php
Located at oops_lib/Xoops/Core/Text/ShortCodes.php
Package: Xoops\Core\Text
Category: Sanitizer\ShortCodes
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Sam Williams sam@swilliams.com.au
Link: https://github.com/Badcow/Shortcodes
Link: https://github.com/WordPress/WordPress/blob/master/wp-includes/shortcodes.php
Located at oops_lib/Xoops/Core/Text/ShortCodes.php
public
|
|
public
|
|
public
array
|
|
public
boolean
|
|
public
boolean
|
#
contentHasShortcode( string $content, string $tag )
Tests whether content has a particular shortcode |
public
string
|
|
public
string
|
|
public
array
|
#
shortcodeAttributes( array $defaults, array $attributes )
Combine user attributes with known attributes and fill in defaults when needed. |