Actions
Feature proposal #3698
closedAPI: Add function to CBTxt to trigger CMS content bots
Description
/**
* Prepares the HTML $htmlText with triggering CMS Content Plugins if $allowed, otherwise keeps as is
* @since 1.9
*
* @param string $htmlText
* @param boolean $allowed
* @return string
*/
public static function prepareHtmlContentPlugins( $htmlText, $allowed = true );
/**
* Translates, prepares the HTML $htmlText with triggering CMS Content Plugins, replaces CB substitutions and extra HTML and non-HTML substitutions
*
* @param string $mainText
* @param int $user_id
* @param boolean $html
* @param boolean $translateMainText
* @param boolean $prepareHtmlContentPlugins
* @param array|null $extraHtmlStrings
* @param array|null $extraNonHtmlStrings
* @return string
*/
public static function replaceUserVars( $mainText, $user_id, $html, $translateMainText = true, $prepareHtmlContentPlugins = false, $extraHtmlStrings = null, $extraNonHtmlStrings = null );
Actions