如何配置 FCKeditor 将 HTML 符号保存为 XHTML 符号(“ ”将是“ ”)?
如何配置 FCKeditor 将 HTML 符号保存为 XML 符号(
将是  
)?
How can I configure FCKeditor to save HTML symbols as XML symbols (
would be
)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我使用旧的 FCKEditor 时,我对通过 PHP 提交到数据库的表单进行了很多后处理、IE、正则表达式更改。它可以轻松替换
等元素。我想您的更改可能就像在数据库插入之前在字段上执行 htmlentities 一样简单。顺便说一句,我现在使用的是最新/最新/最好版本的 CKEditor,它比许多人仍在使用的旧版 FCK 高出光年。它能够在前端“取消文字化”Microsoft 文档,而无需额外的用户交互,这使其成为我认为最好的编辑器,没有之一。在新版本中,我开始在编辑器本身的 javascript 内部做大量工作,以修改它呈现 HTML 的方式...但是对于新版本,这似乎比以前容易得多。
祝你好运。
When I was using the old FCKEditor I did a lot of post-processing, IE, regexp changes on the form that I submitted to the Database via PHP. It makes it easy to replace elements like
<br>
's etc. I would imagine your change could be as simple as doing an htmlentities on the field prior to a database insert.As an aside, I'm using the newest/latest/greatest version of CKEditor now, and it's lightyears above the old FCK that so many people still use. It's ability to "un-wordify" Microsoft documents on the front end without the need for additional user interaction makes it the best editor out there to me, bar none. On the new one I've started doing a lot of work inside the javascript of the editor itself to modify how it renders the HTML...but with the newer version this seems a lot easier than it used to.
Good luck.