Markdown-formatted text is displayed with html-tags?

  • Hello guys,

    I'm struggling with a problem I do not understand.

    I would like to output a text from my Model in the frontend. This text can either be or not be formatted as markdown.

    Now my SiteController.php applies the markdown-plugin if the item from the model is saved as "uses markdown".

    This is my source:

    But now what happens on a markdown-formatted text: Is it being displayed with the HTML-Tags:

    What did I miss?