[TYPO3-english] How to format text entered in an RTE-field?

Jigal van Hemert jigal at xs4all.nl
Wed Jan 5 20:09:10 CET 2011


Hi,

On 5-1-2011 17:16, Bart van den Burg wrote:
> I created an extension with a table with one RTE column. Now in my
> plugin I want to display the text the user entered, but in the database
> it's stored not completely as HTML.
>
> How do I transform this to HTML, so the visitor can see this text as it
> should be? I've been pulling my hair for two days now trying to figure
> it out, but have been unsuccessful so far. I thought I had the sollution:

If your extension is based on tslib_pibase, simply use:
$displayText = $this->pi_RTEcssText($textFromDatabaseRecord);

-- 
Kind regards / met vriendelijke groet,

Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh


More information about the TYPO3-english mailing list