{"comment":{"created_at":"2011-10-18T13:47:06Z","body":"Why not write some simple wrapper functions like gt(1,2), st(2,3) etc? ","updated_at":"2011-10-18T13:47:06Z","url":"https://api.github.com/repos/SteveSanderson/knockout/issues/comments/2441847","id":2441847,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d591579f1070d58d4b0aa1d5c052d58e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d591579f1070d58d4b0aa1d5c052d58e","url":"https://api.github.com/users/johnnyelwailer","id":854944,"login":"johnnyelwailer"}},"action":"created","issue":{"number":132,"created_at":"2011-07-19T23:47:30Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Since `memoizeBindingAttributeSyntax` uses a regexp to find data-binds in plain-text templates, and extracts it cleanly into the template JS, it fails if the data-bind expression has html entities. \r\n\r\n```html\r\n<div data-bind=\"visible: isApplicable() &amp;&amp; someInt() &gt; 20\"></div>\r\n```\r\n\r\nSo again, this doesn't work for bindings inside templates but it does works for bindings in normal DOM and is even reccomended for a couple of symbols: &<>\" \r\n\r\nThis is especially annoying for me since my server-side templating language actually forces this kind of escaped attribute values, even in templates. :)\r\n\r\nI realize that it's impractical to make this work for all html entities (short of dumping the value into a document fragment and reading the text contents). But manually handling these 3-4 entities would solve 95% of the issues, I'd say.","comments":3,"title":"Html Entities in data-bind expressions inside templates","updated_at":"2011-10-18T13:47:06Z","url":"https://api.github.com/repos/SteveSanderson/knockout/issues/132","id":1253321,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/6e98b58467d1c836a0e2ca29e5b74086?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6e98b58467d1c836a0e2ca29e5b74086","url":"https://api.github.com/users/eirikurn","id":115094,"login":"eirikurn"},"html_url":"https://github.com/SteveSanderson/knockout/issues/132","labels":[{"name":"Future","url":"https://api.github.com/repos/SteveSanderson/knockout/labels/Future","color":"0b02e1"}],"state":"open"},"legacy":{"issue_id":1253321,"comment_id":2441847}}