{"action":"created","issue":{"url":"https://api.github.com/repos/jsocol/bleach/issues/152","labels_url":"https://api.github.com/repos/jsocol/bleach/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/jsocol/bleach/issues/152/comments","events_url":"https://api.github.com/repos/jsocol/bleach/issues/152/events","html_url":"https://github.com/jsocol/bleach/issues/152","id":72928704,"number":152,"title":"Can't allow style background-image with value url('foo')","user":{"login":"bsturmfels","id":9541562,"avatar_url":"https://avatars.githubusercontent.com/u/9541562?v=3","gravatar_id":"","url":"https://api.github.com/users/bsturmfels","html_url":"https://github.com/bsturmfels","followers_url":"https://api.github.com/users/bsturmfels/followers","following_url":"https://api.github.com/users/bsturmfels/following{/other_user}","gists_url":"https://api.github.com/users/bsturmfels/gists{/gist_id}","starred_url":"https://api.github.com/users/bsturmfels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsturmfels/subscriptions","organizations_url":"https://api.github.com/users/bsturmfels/orgs","repos_url":"https://api.github.com/users/bsturmfels/repos","events_url":"https://api.github.com/users/bsturmfels/events{/privacy}","received_events_url":"https://api.github.com/users/bsturmfels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-04T05:43:49Z","updated_at":"2015-05-05T14:58:32Z","closed_at":"2015-05-04T05:54:43Z","body":"Bleach strips out the \"background-image\" style when the value contains parentheses, even when \"background-image\" is an allowed style.\r\n\r\n```\r\n>>> import bleach\r\n>>> bleach.clean(\r\n...    \"\"\"<div style=\"background-image: url('foo');\"></div>\"\"\",\r\n...    tags=['div'], attributes=['style'], styles=['background-image'])\r\n\r\n'<div style=\"\"></div>'\r\n```\r\n\r\nI would expect this to return:\r\n\r\n```\r\n'<div style=\"background-image: url('foo');\"></div>'\r\n```\r\n\r\nI've tested this against Bleach 4e425f767b and html5lib 0.999."},"comment":{"url":"https://api.github.com/repos/jsocol/bleach/issues/comments/99104933","html_url":"https://github.com/jsocol/bleach/issues/152#issuecomment-99104933","issue_url":"https://api.github.com/repos/jsocol/bleach/issues/152","id":99104933,"user":{"login":"jsocol","id":180459,"avatar_url":"https://avatars.githubusercontent.com/u/180459?v=3","gravatar_id":"","url":"https://api.github.com/users/jsocol","html_url":"https://github.com/jsocol","followers_url":"https://api.github.com/users/jsocol/followers","following_url":"https://api.github.com/users/jsocol/following{/other_user}","gists_url":"https://api.github.com/users/jsocol/gists{/gist_id}","starred_url":"https://api.github.com/users/jsocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsocol/subscriptions","organizations_url":"https://api.github.com/users/jsocol/orgs","repos_url":"https://api.github.com/users/jsocol/repos","events_url":"https://api.github.com/users/jsocol/events{/privacy}","received_events_url":"https://api.github.com/users/jsocol/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T14:58:32Z","updated_at":"2015-05-05T14:58:32Z","body":":) glad you find it helpful!"}}