{"action":"created","issue":{"url":"https://api.github.com/repos/Adobe-Marketing-Cloud/htl-spec/issues/50","repository_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/htl-spec","labels_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/htl-spec/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/htl-spec/issues/50/comments","events_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/htl-spec/issues/50/events","html_url":"https://github.com/Adobe-Marketing-Cloud/htl-spec/issues/50","id":296852473,"number":50,"title":"@ context is not escaping single quotes","user":{"login":"JamesWilkinson-ICFOlson","id":26228800,"avatar_url":"https://avatars1.githubusercontent.com/u/26228800?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesWilkinson-ICFOlson","html_url":"https://github.com/JamesWilkinson-ICFOlson","followers_url":"https://api.github.com/users/JamesWilkinson-ICFOlson/followers","following_url":"https://api.github.com/users/JamesWilkinson-ICFOlson/following{/other_user}","gists_url":"https://api.github.com/users/JamesWilkinson-ICFOlson/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesWilkinson-ICFOlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesWilkinson-ICFOlson/subscriptions","organizations_url":"https://api.github.com/users/JamesWilkinson-ICFOlson/orgs","repos_url":"https://api.github.com/users/JamesWilkinson-ICFOlson/repos","events_url":"https://api.github.com/users/JamesWilkinson-ICFOlson/events{/privacy}","received_events_url":"https://api.github.com/users/JamesWilkinson-ICFOlson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-13T19:11:59Z","updated_at":"2018-03-07T17:56:38Z","closed_at":null,"author_association":"NONE","body":"This code example where `properties.titleLeft = GET 50% OFF ANY M'EDIUM OR L\"AR\"GE PIZZA!`\r\n\r\n```\r\n<a href=\"#\" onclick=\"trackPromoCta('${properties.titleLeft @ context='html'}')\">Text</a>\r\n<a href=\"#\" onclick=\"trackPromoCta('${properties.titleLeft @ context='attribute'}')\">Text</a>\r\n<a href=\"#\" onclick=\"trackPromoCta('${properties.titleLeft @ context='text'}')\">Text</a>\r\n```\r\n\r\nProduces \r\n\r\n```\r\n<a href=\"#\" onclick=\"trackPromoCta('Get 50% off any m'edium or l&quot;ar&quot;ge pizza!')\">Text</a>\r\n```\r\n\r\nThe single quote is not encoded as an HTML entity, therefore this function causes an error on button click as it ends too soon at the single quote in the what should be escaped content.\r\n\r\nProducing error `Uncaught SyntaxError: missing ) after argument list` "},"comment":{"url":"https://api.github.com/repos/Adobe-Marketing-Cloud/htl-spec/issues/comments/371225586","html_url":"https://github.com/Adobe-Marketing-Cloud/htl-spec/issues/50#issuecomment-371225586","issue_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/htl-spec/issues/50","id":371225586,"user":{"login":"modeckimellett","id":2799849,"avatar_url":"https://avatars3.githubusercontent.com/u/2799849?v=4","gravatar_id":"","url":"https://api.github.com/users/modeckimellett","html_url":"https://github.com/modeckimellett","followers_url":"https://api.github.com/users/modeckimellett/followers","following_url":"https://api.github.com/users/modeckimellett/following{/other_user}","gists_url":"https://api.github.com/users/modeckimellett/gists{/gist_id}","starred_url":"https://api.github.com/users/modeckimellett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modeckimellett/subscriptions","organizations_url":"https://api.github.com/users/modeckimellett/orgs","repos_url":"https://api.github.com/users/modeckimellett/repos","events_url":"https://api.github.com/users/modeckimellett/events{/privacy}","received_events_url":"https://api.github.com/users/modeckimellett/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T17:56:38Z","updated_at":"2018-03-07T17:56:38Z","author_association":"NONE","body":"This appears to be an engine specific issue rather than a problem with the spec. You may want to move your issue to https://github.com/apache/sling-org-apache-sling-scripting-sightly if that is the engine you are using."}}
{"actor":{"display_login":"modeckimellett"}}