ACF pro showing plain text instead of WYSIWIG

Hi. I am new to Sage 9 and so far am loving it. I managed to get ACF installed and am routing the variables through a controller. The image and text area fields are working great except the WYSIWIG is showing plain text and not actually rendering the html output. I’ve tried deactivating the plugin and rerunning yarn but its still not rendering as expected. Could this be a Blade thing or a TinyMCE problem? Attached a screenshot of the output.

Controller:

  public function layout()
  {
      return (object) array(
          'text' => get_field('test_text'),
      );
  }

Blade View:

@extends('layouts.app')

@section('content')
  @while(have_posts()) @php(the_post())
  <h2 style="color: red">Front Page</h2>
    @include('partials.page-header')
    @include('partials.content-page')

    {{ $layout->text }}
    <img src="{{$layout->image}}" />

  @endwhile
@endsection

{{ }} is escaped by default using htmlspecialchars().

Use {!! $layout->text !!} instead.

6 Likes

So simple that would’ve taken me forever to figure out! Thanks so much!