{"issue":{"created_at":"2011-11-30T12:31:23Z","state":"open","updated_at":"2011-11-30T12:31:23Z","comments":0,"user":{"gravatar_id":"cd6e516ad2850fd77a3b20448251f3ca","id":199657,"url":"https://api.github.com/users/wichert","avatar_url":"https://secure.gravatar.com/avatar/cd6e516ad2850fd77a3b20448251f3ca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"wichert"},"body":"I have an XML template with a basic condition:\r\n\r\n```!xml\r\n<div id=\"changeBatchSizeHolder\" class=\"jsOnly${' disabled' if batch_info.page_count&lt;2 else ''}\">\r\n</div>\r\n```\r\n\r\nChameleon 2 though does not like this and raises an ExpressionError:\r\n\r\n```\r\nExpressionError: invalid syntax\r\n\r\n - String:   \"'disabled' if batch_info.page_count&lt;=2 else None\"\r\n```\r\n\r\nIf I do not escape the ```<``` Chameleon is happy, but now xmllint correctly is no longer happy:\r\n\r\n```\r\nshop/category.pt:134: parser error : Unescaped '<' not allowed in attributes values\r\n```\r\n\r\nThis appears to be a regression from Chameleon 1.","assignee":null,"id":2401160,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":74,"title":"Expressions in attributes must be unescaped before processing","closed_at":null,"html_url":"https://github.com/malthe/chameleon/issues/74","url":"https://api.github.com/repos/malthe/chameleon/issues/74","milestone":null},"action":"opened"}