{"action":"created","issue":{"url":"https://api.github.com/repos/less/less.js/issues/2766","labels_url":"https://api.github.com/repos/less/less.js/issues/2766/labels{/name}","comments_url":"https://api.github.com/repos/less/less.js/issues/2766/comments","events_url":"https://api.github.com/repos/less/less.js/issues/2766/events","html_url":"https://github.com/less/less.js/issues/2766","id":123778635,"number":2766,"title":"Data-URI Parameter","user":{"login":"Infuser","id":12658326,"avatar_url":"https://avatars.githubusercontent.com/u/12658326?v=3","gravatar_id":"","url":"https://api.github.com/users/Infuser","html_url":"https://github.com/Infuser","followers_url":"https://api.github.com/users/Infuser/followers","following_url":"https://api.github.com/users/Infuser/following{/other_user}","gists_url":"https://api.github.com/users/Infuser/gists{/gist_id}","starred_url":"https://api.github.com/users/Infuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Infuser/subscriptions","organizations_url":"https://api.github.com/users/Infuser/orgs","repos_url":"https://api.github.com/users/Infuser/repos","events_url":"https://api.github.com/users/Infuser/events{/privacy}","received_events_url":"https://api.github.com/users/Infuser/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/less/less.js/labels/NeedsInfo","name":"NeedsInfo","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-24T09:06:53Z","updated_at":"2015-12-24T11:42:43Z","closed_at":"2015-12-24T11:42:43Z","body":"I am trying to use less css to create a custom styling application.\r\n\r\nI am using less css in the browser by running  less.render(lessCode, options, function (error, output) as part of the options parameter I am passing modifyVars which includes a logo parameter containing a data-uri but everytime this parameter is set I get Error: Unrecognised input. I have worked out this is caused by forward slash / character in the data-uri but it could be other characters as well.\r\n\r\nI have tried escape, encodeURIComponent, encodeURI none seem to prevent this issue, the data-uri is retrieved from the client using a html5 canvas control canvas.toDataURL.\r\n\r\nCan what I am doing be achieved with less the other parameters I am passing in don't cause an issue\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/less/less.js/issues/comments/167097684","html_url":"https://github.com/less/less.js/issues/2766#issuecomment-167097684","issue_url":"https://api.github.com/repos/less/less.js/issues/2766","id":167097684,"user":{"login":"Infuser","id":12658326,"avatar_url":"https://avatars.githubusercontent.com/u/12658326?v=3","gravatar_id":"","url":"https://api.github.com/users/Infuser","html_url":"https://github.com/Infuser","followers_url":"https://api.github.com/users/Infuser/followers","following_url":"https://api.github.com/users/Infuser/following{/other_user}","gists_url":"https://api.github.com/users/Infuser/gists{/gist_id}","starred_url":"https://api.github.com/users/Infuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Infuser/subscriptions","organizations_url":"https://api.github.com/users/Infuser/orgs","repos_url":"https://api.github.com/users/Infuser/repos","events_url":"https://api.github.com/users/Infuser/events{/privacy}","received_events_url":"https://api.github.com/users/Infuser/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T11:42:43Z","updated_at":"2015-12-24T11:42:43Z","body":"![capture](https://cloud.githubusercontent.com/assets/12658326/11994255/2af0aafc-aa33-11e5-8190-3a0fa4e9fc08.PNG)\r\n \r\nOk sure its working now so anyone else having issues with this its 2 sets of double quotes around the data, I have attached an image to show what your variable should look like in chrome watch window.\r\n\r\nvar logoPar = \"\\\"\" + this.model.attributes.logo + \"\\\"\";\r\n\r\n"}}