如何將富文字編輯器內容,以普通字元展示出來

2021-08-22 13:33:34 字數 496 閱讀 5899

需求

x現在需要乙個功能,就是使用者協議和支付協議已經html頁面展示出來,顯示是htm了,但是展示出來是以普通字元展示出來....

操作

使用php函式中htmlspecialchars_decode。

這個htmlspecialchars_decode - 將特殊的html實體轉換回普通字元

**

/**

* 商戶入駐協議

*/public

function

agreement

()

相反以普通字元轉出html

需要這個函式:此函式的作用和 htmlspecialchars() 剛好相反。它將特殊的html實體轉換回普通字元。

最後附上乙個**驗證;鏈結

富文字編輯器

關於使用富文字編輯器的一些小坑 官網 1.專案 片 editor fail function xhr,editor,result custominsert function insertimg,result,editor this.editor.create this.editor.txt.html...

富文字編輯器

富文字編輯器,rich text editor,簡稱 rte,它提供類似於 microsoft word 的編輯功能。常用的富文字編輯器 kindeditor ueditor ckeditor 在頁面中新增js 用於初始化kindeditorallowfilemanager 是否允許瀏覽伺服器已上傳...

富文字編輯器

富文字編輯器,rich text editor,簡稱 rte,它提供類似於 microsoft word 的編輯功能。常用的富文字編輯器 kindeditor ueditor ckeditor 在頁面中新增js 用於初始化kindeditor allowfilemanager 是否允許瀏覽伺服器已上...