{"action":"created","issue":{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/220","labels_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/220/comments","events_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/220/events","html_url":"https://github.com/GlotPress/GlotPress-WP/issues/220","id":127713267,"number":220,"title":"Quotes shouldn't be escaped","user":{"login":"tacoverdo","id":5147598,"avatar_url":"https://avatars.githubusercontent.com/u/5147598?v=3","gravatar_id":"","url":"https://api.github.com/users/tacoverdo","html_url":"https://github.com/tacoverdo","followers_url":"https://api.github.com/users/tacoverdo/followers","following_url":"https://api.github.com/users/tacoverdo/following{/other_user}","gists_url":"https://api.github.com/users/tacoverdo/gists{/gist_id}","starred_url":"https://api.github.com/users/tacoverdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacoverdo/subscriptions","organizations_url":"https://api.github.com/users/tacoverdo/orgs","repos_url":"https://api.github.com/users/tacoverdo/repos","events_url":"https://api.github.com/users/tacoverdo/events{/privacy}","received_events_url":"https://api.github.com/users/tacoverdo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/labels/priority:high","name":"priority:high","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/milestones/4","html_url":"https://github.com/GlotPress/GlotPress-WP/milestones/1.0.1","labels_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/milestones/4/labels","id":1523837,"number":4,"title":"1.0.1","description":"","creator":{"login":"ocean90","id":617637,"avatar_url":"https://avatars.githubusercontent.com/u/617637?v=3","gravatar_id":"","url":"https://api.github.com/users/ocean90","html_url":"https://github.com/ocean90","followers_url":"https://api.github.com/users/ocean90/followers","following_url":"https://api.github.com/users/ocean90/following{/other_user}","gists_url":"https://api.github.com/users/ocean90/gists{/gist_id}","starred_url":"https://api.github.com/users/ocean90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocean90/subscriptions","organizations_url":"https://api.github.com/users/ocean90/orgs","repos_url":"https://api.github.com/users/ocean90/repos","events_url":"https://api.github.com/users/ocean90/events{/privacy}","received_events_url":"https://api.github.com/users/ocean90/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-01-20T16:01:19Z","updated_at":"2016-01-20T16:01:44Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-01-20T15:55:07Z","updated_at":"2016-01-20T16:25:56Z","closed_at":null,"body":"**Problem description**\r\nWhen adding a translation that contains quotes, or when filtering on something containing a quote, the quote is automagically escaped. This can lead to problems in the translated languages.\r\n\r\n**Example**\r\n![translations___dutch___yoast_seo__for_wordpress____glotpress](https://cloud.githubusercontent.com/assets/5147598/12453840/50f4de22-bf95-11e5-804d-860c9fab94bf.png)\r\nThe entered translation is `Het focus-zoekwoord '%1$s' komt niet voor in de pagina titel.`. It's added as expected. However, when going back to the string, or when looking at the waiting strings, it shows as\r\n`Het focus-zoekwoord \\'%1$s\\' komt niet voor in de pagina titel.`.\r\n(link to [live example](http://translate.yoast.com/gp/projects/wordpress-seo/nl/default/?filters[status]=either&filters[original_id]=4123&sort[by]=translation_date_added&sort[how]=asc))\r\n\r\nThat's annoying, but in [this string](http://translate.yoast.com/gp/projects/wordpress-seo-premium/nl/default/?filters%5Bterm%5D=&filters%5Buser_login%5D=&filters%5Bstatus%5D=waiting&filter=Filter&sort%5Bby%5D=priority&sort%5Bhow%5D=asc), things are getting problematic:\r\n`Het redirect-type is de HTTP respons code die naar de browser wordt gezonden om aan te geven welk type redirect er wordt uitgeserveerd. <br/><br/>Lees <a href=\\'%s\\' target=\\'_blank\\'>deze pagina</a> voor meer informatie.` means the HTML is affected and thus causes invalid HTML output.\r\n\r\n**Possible fix**\r\nDo not escape every input.\r\n\r\n**Tested versions**\r\nWordPress 4.4.1\r\nGlotPress plugin 1.0"},"comment":{"url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/comments/173260516","html_url":"https://github.com/GlotPress/GlotPress-WP/issues/220#issuecomment-173260516","issue_url":"https://api.github.com/repos/GlotPress/GlotPress-WP/issues/220","id":173260516,"user":{"login":"toolstack","id":9053749,"avatar_url":"https://avatars.githubusercontent.com/u/9053749?v=3","gravatar_id":"","url":"https://api.github.com/users/toolstack","html_url":"https://github.com/toolstack","followers_url":"https://api.github.com/users/toolstack/followers","following_url":"https://api.github.com/users/toolstack/following{/other_user}","gists_url":"https://api.github.com/users/toolstack/gists{/gist_id}","starred_url":"https://api.github.com/users/toolstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolstack/subscriptions","organizations_url":"https://api.github.com/users/toolstack/orgs","repos_url":"https://api.github.com/users/toolstack/repos","events_url":"https://api.github.com/users/toolstack/events{/privacy}","received_events_url":"https://api.github.com/users/toolstack/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T16:25:56Z","updated_at":"2016-01-20T16:25:56Z","body":"Yea, I remember taking those out as we didn't want to mess with the global.\r\n\r\nFortunately it looks like it should be an easy fix as `gp_post()` is used to get post data and we can add the strip slashses here https://github.com/GlotPress/GlotPress-WP/blob/master/gp-includes/misc.php#L10"}}