Results 1 to 2 of 2

Thread: displaying textarea on the frontend contao 3 and line return

  1. #1
    New user
    Join Date
    12-27-12.
    Posts
    16

    Default displaying textarea on the frontend contao 3 and line return

    Hello,

    I’m having a 'inputType' => 'textarea', on the backend

    When I want to display this content on the frontend “ echo $this->myText” the text is displayed without every line return.

    In the backend everything is perfect in a “textarea”.

    So how to convert the line return in
    in the frontoffice?

    Thanks

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: displaying textarea on the frontend contao 3 and line re

    With the risk of there being better options, use nl2br: http://php.net/manual/en/function.nl2br.php

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •