{"action":"opened","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1509","repository_url":"https://api.github.com/repos/froala/wysiwyg-editor","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1509/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1509/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1509/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/1509","id":176594370,"number":1509,"title":"Inconsistencies with html.get encoding html enditites when requesting markers","user":{"login":"scazz10","id":16538287,"avatar_url":"https://avatars.githubusercontent.com/u/16538287?v=3","gravatar_id":"","url":"https://api.github.com/users/scazz10","html_url":"https://github.com/scazz10","followers_url":"https://api.github.com/users/scazz10/followers","following_url":"https://api.github.com/users/scazz10/following{/other_user}","gists_url":"https://api.github.com/users/scazz10/gists{/gist_id}","starred_url":"https://api.github.com/users/scazz10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scazz10/subscriptions","organizations_url":"https://api.github.com/users/scazz10/orgs","repos_url":"https://api.github.com/users/scazz10/repos","events_url":"https://api.github.com/users/scazz10/events{/privacy}","received_events_url":"https://api.github.com/users/scazz10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-13T09:37:48Z","updated_at":"2016-09-13T09:37:48Z","closed_at":null,"body":"https://www.froala.com/wysiwyg-editor/docs/methods#html.get\r\n\r\n##### Expected behavior.\r\n\r\n`$('.selector').froalaEditor('html.get', true);` and `$('.selector').froalaEditor('html.get', false);` should return the same content (except for the addition of the selection markers) \r\n\r\n##### Actual behavior.\r\nFroala returns encoded html when including the selection markers\r\n\r\n\r\n##### Steps to reproduce the problem.\r\n\r\n* Fill Froala with the content: `> &gt;'  \r\n* Save the selection markers: `this.getFroalaElement().froalaEditor('selection.save');`\r\n* Grab the html without selection markers: \r\n`this.getFroalaElement().froalaEditor('html.get');` \r\nwhich returns: \r\n`\"&gt; &nbsp;&amp;gt;&nbsp;\"` (this is correct) \r\n* grab the HTML with the selection markers: \r\n`this.getFroalaElement().froalaEditor('html.get', true);` \r\nwhich returns\r\n`\"&gt; &nbsp;&gt;&nbsp;<span class=\"fr-marker\" data-id=\"0\" data-type=\"false\" style=\"display: none; line-height: 0;\">​</span><span class=\"fr-marker\" data-id=\"0\" data-type=\"true\" style=\"display: none; line-height: 0;\">​</span>\"` \r\n\r\nHere, we lose our &gt; - it's encoded and becomes a > \r\n\r\n##### OS.\r\nOS X Yosemite 10.10.5\r\n\r\n##### Browser.\r\nChrome Version 52.0.2743.116 (64-bit)\r\n\r\n"}}
{"actor":{"display_login":"scazz10"}}