Support

Account

Home Forums Front-end Issues Text area output html as string – wrong!

Unread

Text area output html as string – wrong!

  • Hi everyone!
    I have ACF PRO and I’m using some text-area inside a group. The strange things is that, even I’m using “add paragraphs” in the formatting dropdown I get the output with br & p as string, not as html tag.

    $companyPresentation					= get_field('company_presentation'); // group
    <div class="col-6">{{ $companyPresentation['section_description'] }}</div>

    Any idea? Thanks!

    EDIT: got it solved. It was an issue blade related, if you need to output var keeping html formatting you need to use
    {!! $companyPresentation['section_description'] !!}

Viewing 1 post (of 1 total)

The topic ‘Text area output html as string – wrong!’ is closed to new replies.