<p>I'm currently writing a TYPO3 extension which is configured with a list of <code>tt_content</code> UID's.
These point to content elements of type "text" and i want to render them by my extension.</p>

<p>Because of TYPO3s special way of transforming the text you enter in the rich text editing when it enters the database, and again transforming it when it is rendered to the frontend, i can not just output the database contents of the <code>bodytext</code> field.</p>

<p>I want to render these texts as they would usually get rendered by TYPO3.
How do I do that? </p>

I had the same problem a couple of months ago. Now I must say that I am no typo3 developer, so I don't know if this is the right solution.
But I used something like this:
```
$output .= $this->pi_RTEcssText( $contentFromDb );
```
in my extension and it works.