michael275
michael275

Reputation: 27

CKEditor is html encoding when it shouldn't be

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

In the ckeditor when I right click on a link and click "edit link", in the URL text box, where the link should say"&sectid=4" the editor has turned it into the section symbol §id=4.

in my config.js, I already have config.entities = false.

What else should I try?

Upvotes: 0

Views: 182

Answers (1)

Quentin
Quentin

Reputation: 943216

You should avoid writing the section symbol in the first place. The entity &sect, presumably (since you didn't show a proper [MCVE]), is being transformed into § by the browser before it even gets passed to the CKEditor JavaScript.

Write your HTML properly, if you want an ampersand as data in HTML then you need to present it as &amp; since & means "Start of entity".

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

Upvotes: 1

Related Questions