Skip to content

Instantly share code, notes, and snippets.

@paulrohrbeck
Created November 13, 2013 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulrohrbeck/7446655 to your computer and use it in GitHub Desktop.
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)
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