0
數據庫我添加文本和HTML,例如:在模板getRawValue()沒有格式化? Symfony的
<i>test test </i> <strong>test test</strong>
我使用$文本 - > getBody() - > getRawValue(),我有格式的文本:
試驗測試試驗測試
,如果我只使用文本的$> getBody(),然後我在模板:
<i>test test </i> <strong>test test</strong>
我怎麼能不渲染getRawValue()的文本,但我想他沒有html標籤堅強,我等:
test test test test