Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67469

Laravel Blade : HTML Tags not rendered in my blade file

$
0
0

So I have a WYSIWYG fields in my form and upon retrieving the data, html tags are not properly rendered. HTML tags are still displayed in the form. I have tried some solutions from here and I also believe that it is the best way to parse HTML tags in laravel blade. I also tried doing it this way:

{!! nl2br(e($test)) !!}

And it still fails. Data displayed is still raw data.

DATA

<p><strong>Lorem</strong> ipsum dolor asdjfgjasfgbjgj gjbhgjgjgjkghkj; lkfakj ;ljljfl sdfadfasfd asera

blade file

@php
    $rules = $room['house_rules'];
@endphp
<div class="form-group">
    <textarea id="house_rules" name="house_rules" class="form-control" rows="4" disabled>{!! $rules !!} </textarea>
</div>

UPDATE

DD data

<p><strong>Lorem</strong> ipsum dolor asdjfgjasfgbjgj gjbhgjgjgjkghkj; lkfakj ;ljljfl sdfadfasfd asera

Am I missing something that is causing the html to be not rendered properly?


Viewing all articles
Browse latest Browse all 67469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>