Php Laravel刀片添加了“`{}`";在尝试允许HTML时删除数据
当我试图在LaravelBlade文件中转义html时,出于某种原因,它会向其中添加不必要的“{}”。这只有在我通过添加此Php Laravel刀片添加了“`{}`";在尝试允许HTML时删除数据,php,laravel,Php,Laravel,当我试图在LaravelBlade文件中转义html时,出于某种原因,它会向其中添加不必要的“{}”。这只有在我通过添加此来转义HTML时才会发生变量前后 刀片文件: @extends('layouts.layout') @section('content') <form action="{{ url('/save') }}" method="post"> @csrf <textarea class="description" name="description
来转义HTML时才会发生代码>变量前后
刀片文件:
@extends('layouts.layout')
@section('content')
<form action="{{ url('/save') }}" method="post">
@csrf
<textarea class="description" name="description"></textarea>
<input type="submit" value="Submit">
</form>
<script src="https://cloud.tinymce.com/stable/tinymce.min.js"></script>
<script>
tinymce.init({
selector:'textarea.description',
width: 900,
height: 300
});
</script>
<div id="products">
@foreach($products as $product)
{{!! $product->descr !!}}
<br>
@endforeach
</div>
@endsection
如何删除此项?您正在使用此{{!!!!}
,它必须是这样的{!!!!}
(必须是单花括号)
{!!'段落'!!}
您正在使用此{{!!…!!}
并且它必须是这样的{!!…!!}
(必须是单花括号)
{!!'段落'!!}
我很高兴能帮助你!我很高兴帮助你!查看名为“显示未缩放数据”的部分,您只需要一个大括号检查名为“显示未缩放数据”的部分,您只需要一个大括号
{this is a random description!}
{!! '<p>Paragraph</p>' !!}