我有一个rss订阅源,但换行符显示为
<br/>
在浏览器中(在chrome和firefox中测试)
这就是我构建数据的方式:
$description = $item->company_name . '<br />Salary: ' . $item->salary_desc . '<br />Location: ' . $item->location;
这是我的提要模板
<description><![CDATA[{!! $item['description'] !!}]]></description>
这是浏览器中的结果
Google<br />Salary: Excellent<br />Location: London
我正在使用下面的包来构建我的feed
https://gitlab.com/Laravelium/Feed
为什么换行显示为
<br />
而不是增加休息时间?