Running Joomla content plugins in your custom components

to allow your custom components to access Joomla’s content plugins

$text = JHTML::_('content.prepare', $text );