{"action":"created","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/482","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/482/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/482/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/482","id":63031731,"number":482,"title":"Special HTML entities are lost","user":{"login":"frankrue","id":1796176,"avatar_url":"https://avatars.githubusercontent.com/u/1796176?v=3","gravatar_id":"","url":"https://api.github.com/users/frankrue","html_url":"https://github.com/frankrue","followers_url":"https://api.github.com/users/frankrue/followers","following_url":"https://api.github.com/users/frankrue/following{/other_user}","gists_url":"https://api.github.com/users/frankrue/gists{/gist_id}","starred_url":"https://api.github.com/users/frankrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankrue/subscriptions","organizations_url":"https://api.github.com/users/frankrue/orgs","repos_url":"https://api.github.com/users/frankrue/repos","events_url":"https://api.github.com/users/frankrue/events{/privacy}","received_events_url":"https://api.github.com/users/frankrue/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-19T16:37:54Z","updated_at":"2015-03-19T16:52:53Z","closed_at":"2015-03-19T16:48:31Z","body":"Unless there is an option of which I am unaware (quite possible!), any special ampersand-style characters get lost in the editor. I've created a jsfiddle to show this, where the existing text includes `&ldquos;` and `&rdquos;` and an alert reveals the returned string from a `getHTML` call.\r\n\r\nIn the returned screen, the special characters are converted to their display equivalents. This wreaks havoc with a content management system I am building where such values are stored in a DB.\r\n\r\nI can reproduce this in Chrome and Safari; I have no reason to believe it is browser-specific.\r\n\r\nhttps://jsfiddle.net/eqsp2fww/3/"},"comment":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/comments/83660208","html_url":"https://github.com/froala/wysiwyg-editor/issues/482#issuecomment-83660208","issue_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/482","id":83660208,"user":{"login":"frankrue","id":1796176,"avatar_url":"https://avatars.githubusercontent.com/u/1796176?v=3","gravatar_id":"","url":"https://api.github.com/users/frankrue","html_url":"https://github.com/frankrue","followers_url":"https://api.github.com/users/frankrue/followers","following_url":"https://api.github.com/users/frankrue/following{/other_user}","gists_url":"https://api.github.com/users/frankrue/gists{/gist_id}","starred_url":"https://api.github.com/users/frankrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankrue/subscriptions","organizations_url":"https://api.github.com/users/frankrue/orgs","repos_url":"https://api.github.com/users/frankrue/repos","events_url":"https://api.github.com/users/frankrue/events{/privacy}","received_events_url":"https://api.github.com/users/frankrue/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T16:52:53Z","updated_at":"2015-03-19T16:52:53Z","body":"I was following that discussion, but it doesn't solve the problem. Ignore HTML tags inside of HTML for a moment, and simply use something as obvious as a decorative open and closing pair of double quotes (`&ldquos;` and `&rdquos;`) from my previous example.\r\n\r\nEven if you put them into a froala editor based on a `<div></div>`, they are still returned incorrectly with the `getHTML` method.\r\n\r\n\"Well then just don't do that,\" isn't an option for a WYSIWYG editor in this example."}}