CKEditor 在不应该的时候进行了 html 编码

CKEditor is html encoding when it shouldn't be

我有考试link; <a href="https//example.com?test=5&sectid=4"/>testLink

在 ckeditor 中,当我右键单击 link 并单击 "edit link" 时,在 URL 文本框中,link 应该显示“§id=4” " 编辑把它变成了节号 §id=4.

在我的 config.js 中,我已经有 config.entities = false

我还应该尝试什么?

你应该首先避免写节号。实体 &sect,大概(因为您没有显示正确的 [MCVE]),在它甚至被传递给 CKEditor JavaScript 之前被浏览器转换为 §。 =15=]

正确地写你的HTML,如果你想要一个符号作为HTML中的数据,那么你需要将它呈现为&amp;,因为&意味着"Start of entity".

<a href="https//example.com?test=5&amp;sectid=4"/>testLink