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

Bart van den Burg bart at samson-it.nl
Thu Jan 6 09:29:00 CET 2011


Op 5-1-2011 20:09, Jigal van Hemert schreef:
> 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);


Jigal, You're a genius! Thanks!

Regards,
Bart


More information about the TYPO3-english mailing list