迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
讓字段完整的輸出HTML代碼,比如字段 “HTML字段” 多行文本 ,后臺添了加了內容,前臺顯示會過慮,,
過濾成什么樣子的
完整的 <svg class="bi bi-layers-fill " width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" d="M7.765 1.559a.5.5 0 0 1 .47 0l7.5 4a.5.5 0 0 1 0 .882l-7.5 4a.5.5 0 0 1-.47 0l-7.5-4a.5.5 0 0 1 0-.882l7.5-4z"/> <path fill-rule="evenodd" d="M2.125 8.567l-1.86.992a.5.5 0 0 0 0 .882l7.5 4a.5.5 0 0 0 .47 0l7.5-4a.5.5 0 0 0 0-.882l-1.86-.992-5.17 2.756a1.5 1.5 0 0 1-1.41 0l.418-.785-.419.785-5.169-2.756z"/> </svg> 調用出的是: <svg class="bi bi-layers-fill " width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" d="M7.765 1.559a.5.5 0 0 1 .47 0l7.5 4a.5.5 0 0 1 0 .882l-7.5 4a.5.5 0 0 1-.47 0l-7.5-4a.5.5 0 0 1 0-.882l7.5-4z"/> <path fill-rule="evenodd" d="M2.125 8.567l-1.86.992a.5.5 0 0 0 0 .882l7.5 4a.5.5 0 0 0 .47 0l7.5-4a.5.5 0 0 0 0-.882l-1.86-.992-5.17 2.756a1.5 1.5 0 0 1-1.41 0l.418-.785-.419.785-5.169-2.756z"/> </svg> 關閉了 XSS過慮
回復迅??蚣軇撌既?/p>
用php函數把html標簽實體化一下
html_entity_decode
回復迅睿框架創始人 php函數 在調用里怎么啊?能具體點嗎?感謝
你的調用標簽是怎么寫的,我照著給你寫就行
{module module=ggcx catid=40 order=displayorder,updatetime num=10} <li> <a href="{$t.tzlj}" class="btn btn-{$t.yanse} clearfix "><i > {$t.tubiao}</i><b>{$t.title}<br>{$t.dehz}</b> </a> </li> {/module}
{$t.tubiao} 這個字段需要輸出html
{html_entity_decode($t.tubiao)}
過濾成什么樣子的
回復迅??蚣軇撌既?/p>
用php函數把html標簽實體化一下
html_entity_decode
回復迅睿框架創始人 php函數 在調用里怎么啊?能具體點嗎?感謝
你的調用標簽是怎么寫的,我照著給你寫就行
回復迅??蚣軇撌既?/p>