{"action":"created","issue":{"url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/206","labels_url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/206/comments","events_url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/206/events","html_url":"https://github.com/WebDevStudios/custom-post-type-ui/issues/206","id":55901822,"number":206,"title":"get code and escaped characters in description","user":{"login":"davidh-ssec","id":1828519,"avatar_url":"https://avatars.githubusercontent.com/u/1828519?v=3","gravatar_id":"","url":"https://api.github.com/users/davidh-ssec","html_url":"https://github.com/davidh-ssec","followers_url":"https://api.github.com/users/davidh-ssec/followers","following_url":"https://api.github.com/users/davidh-ssec/following{/other_user}","gists_url":"https://api.github.com/users/davidh-ssec/gists{/gist_id}","starred_url":"https://api.github.com/users/davidh-ssec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidh-ssec/subscriptions","organizations_url":"https://api.github.com/users/davidh-ssec/orgs","repos_url":"https://api.github.com/users/davidh-ssec/repos","events_url":"https://api.github.com/users/davidh-ssec/events{/privacy}","received_events_url":"https://api.github.com/users/davidh-ssec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-29T13:58:16Z","updated_at":"2015-01-29T13:59:59Z","closed_at":null,"body":"If you have quotes (or I'm guessing other special characters) in the description of a CPT, the \"Get Code\" text doesn't have these characters escaped. If a user copy/pastes the text in to functions.php there is a syntax error. In my case I used an apostrophe (single quote) in my description and I got a syntax error. I'm new to PHP, so I'm not sure the \"correct\" way to sanitize this information. The quick solution for a user is to just escape the characters with a backslash."},"comment":{"url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/comments/72028394","html_url":"https://github.com/WebDevStudios/custom-post-type-ui/issues/206#issuecomment-72028394","issue_url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/206","id":72028394,"user":{"login":"davidh-ssec","id":1828519,"avatar_url":"https://avatars.githubusercontent.com/u/1828519?v=3","gravatar_id":"","url":"https://api.github.com/users/davidh-ssec","html_url":"https://github.com/davidh-ssec","followers_url":"https://api.github.com/users/davidh-ssec/followers","following_url":"https://api.github.com/users/davidh-ssec/following{/other_user}","gists_url":"https://api.github.com/users/davidh-ssec/gists{/gist_id}","starred_url":"https://api.github.com/users/davidh-ssec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidh-ssec/subscriptions","organizations_url":"https://api.github.com/users/davidh-ssec/orgs","repos_url":"https://api.github.com/users/davidh-ssec/repos","events_url":"https://api.github.com/users/davidh-ssec/events{/privacy}","received_events_url":"https://api.github.com/users/davidh-ssec/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T13:59:59Z","updated_at":"2015-01-29T13:59:59Z","body":"I think this is similar to issue #100, but I don't think it is fixed by that commit."}}