I have saved TYPO3 text (bodytext) in database. It contains different links saved in t3 format:
<p><a href="t3://page?uid=700" target="_blank" class="internal" title="title">Link</a> more text.</p>
The idea is create some script as CommandController, get this saved text and send it via email by cron. The problem is links will not be converted in proper html without frontend environment (it works fine, if I do the same inside frontend plugin).
I tried to render this text with fluid html view helper:
<f:format.html>{item.bodytext}</f:format.html>
Also tried to parse text with $contentObject->parseFunc directly inside my CommandController. But it will just cut off link.
Is any simple TYPO3 function to convert bodytext in real html?
Note: typo3 version 8.7.16