繁体   English   中英

我们可以包含存储在数据库中的 html 内容的部分视图吗 #laravel

[英]can we include the partial view with html content stored in database #laravel

例如数据库中的数据为

<div>
@include('web.home')
<div>

在 Laravel 视图中,我们可以解析这些数据和部分视图,假设$test保存数据{{$test}} or {!! $test !!} {{$test}} or {!! $test !!}没有用

我试图再次使用Blade::compileString($test)重新编译刀片,但没有运气

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM