Created
November 13, 2013 10:09
-
-
Save paulrohrbeck/7446655 to your computer and use it in GitHub Desktop.
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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