{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/8246","repository_url":"https://api.github.com/repos/contao/core","labels_url":"https://api.github.com/repos/contao/core/issues/8246/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/8246/comments","events_url":"https://api.github.com/repos/contao/core/issues/8246/events","html_url":"https://github.com/contao/core/issues/8246","id":138043289,"number":8246,"title":"JS in CE Type HTML: < gets converted to entity &lt;","user":{"login":"Aybee","id":1143013,"avatar_url":"https://avatars.githubusercontent.com/u/1143013?v=3","gravatar_id":"","url":"https://api.github.com/users/Aybee","html_url":"https://github.com/Aybee","followers_url":"https://api.github.com/users/Aybee/followers","following_url":"https://api.github.com/users/Aybee/following{/other_user}","gists_url":"https://api.github.com/users/Aybee/gists{/gist_id}","starred_url":"https://api.github.com/users/Aybee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aybee/subscriptions","organizations_url":"https://api.github.com/users/Aybee/orgs","repos_url":"https://api.github.com/users/Aybee/repos","events_url":"https://api.github.com/users/Aybee/events{/privacy}","received_events_url":"https://api.github.com/users/Aybee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-03T01:08:20Z","updated_at":"2016-03-19T10:28:39Z","closed_at":null,"body":"This input\r\n```html\r\n<script>\r\nif(1 < 2) {\r\n  console.log('OK');\r\n}\r\n</script>\r\n```\r\nends up in\r\n```html\r\n<script>\r\nif(1 &lt; 2) {\r\n  console.log('OK');\r\n}\r\n</script>\r\n```\r\nThis happens with and without ace."},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/198681077","html_url":"https://github.com/contao/core/issues/8246#issuecomment-198681077","issue_url":"https://api.github.com/repos/contao/core/issues/8246","id":198681077,"user":{"login":"tabcontao","id":5988941,"avatar_url":"https://avatars.githubusercontent.com/u/5988941?v=3","gravatar_id":"","url":"https://api.github.com/users/tabcontao","html_url":"https://github.com/tabcontao","followers_url":"https://api.github.com/users/tabcontao/followers","following_url":"https://api.github.com/users/tabcontao/following{/other_user}","gists_url":"https://api.github.com/users/tabcontao/gists{/gist_id}","starred_url":"https://api.github.com/users/tabcontao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabcontao/subscriptions","organizations_url":"https://api.github.com/users/tabcontao/orgs","repos_url":"https://api.github.com/users/tabcontao/repos","events_url":"https://api.github.com/users/tabcontao/events{/privacy}","received_events_url":"https://api.github.com/users/tabcontao/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T10:28:39Z","updated_at":"2016-03-19T10:28:39Z","body":"Whatever we think about adding Javascript in the HTML Element, the current implementation is at least inconsistent. Because you just have to write \"if (2 > 1)\" in the example above and it will work. Why should one version work but not the other one? So it's not a question of \"bug\" or \"no bug\". It's just the question which one is the bug. Is it a bug that \"if (2 > 1)\" works or is it a bug that \"if (1 < 2)\" doesn't?\r\nIn general I would agree with Leo, that the real bug is to allow the use Javascript inside the HTML element alltogether. But fixing this would probably lead to a lot of problems with existing installations, too much IMHO for a bugfix release. Maybe it would be a better idea, to fix it that way in 4.2 and make both versions of the example given above work in 3.5 - if technically possible without too much effort."}}