Hello,
I would like to share some code extracted from a CB plugin developed by an external developer.
Code:
use CBLib\Language\CBTxt;
// (Omitted)
// get plugin params
$plugin = JPluginHelper::getPlugin('jevents', 'jevusers');
if (!$plugin)
return "";
$jevusers_params = new JRegistry($plugin->params);
if ($jevusers_params->get("showattending", 1))
{
$tab_intro = $this->params->get('tabMessage', "JEVENTS_TAB_TEXT_DEFAULT_2");
}
else
{
$tab_intro = $this->params->get('tabMessage', 'UPCOMING_EVENTS_CREATED_BY_THIS_USER_OR_THEY_AREATTENDING');
}
$tab_intro = CBTxt::T($tab_intro);
In the Tab management, I have set
CB_JEVENS_NOTE as the tab text parameter for this plugin. I have also set up the text for
CB_JEVENS_NOTE in the Plugin management's language override.
Currently, when I input
<strong>my text</strong>, the
<strong> tags are being output as text. I suspect that
$tab_intro = CBTxt::T($tab_intro); is the cause of this. Is it possible to make this code compatible with HTML tags?
Thanks