2012-02-15 57 views
1

的FCKeditor v2.6.6改變輸入代碼containting在它<>&lt;&gt;分別導致錯誤。有什麼方法可以配置FCKeditor來正確解析這些字符,否則它們會被輸入到我們的數據庫中,並在PHP文件中輸出時被錯誤地渲染。對於basicEntitiesFCKeditor的變化 '<' 到 '<' 和 '>' 到 '>' 導致錯誤

+0

我正在使用CKEditor4的同樣的問題! – 2013-08-21 20:28:04

回答

2

http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html

檢查部分。但是,這是爲CKEditor,FCKEditor可能沒有這個。也許你應該考慮升級?

否則,這可能會有所幫助:http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/ProcessHTMLEntities

+0

謝謝jishi,我剛剛發現了這個文檔,並且把ProcessHTMLEntities改成了true('FCKConfig.ProcessHTMLEntities \t = true')。我會測試它。 – JoeW 2012-02-15 12:44:35

+0

不幸的是它沒有工作。我認爲唯一的解決方法是'preg_replace' - 我會寫另一個問題。 – JoeW 2012-02-15 13:29:26

相關問題