TYPO3, Extbase: Instead of using the <f:format.html> ViewHelper to parse a RTE database field with the usual TypoScript lib, use it inside a controller. This is useful for instance if we pass something back as JSON. (this not special - it's actually borrowed from the original ViewHelper - I just wanted to keep it around in case I need it again)
protected $cObj; | |
$this->cObj = t3lib_div::makeInstance('tslib_cObj'); | |
$rteText = $this->cObj->parseFunc($anyObject->getDescription(), array(), '< lib.parseFunc_RTE'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment