{"action":"created","issue":{"url":"https://api.github.com/repos/BorisMoore/jsviews/issues/376","repository_url":"https://api.github.com/repos/BorisMoore/jsviews","labels_url":"https://api.github.com/repos/BorisMoore/jsviews/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/BorisMoore/jsviews/issues/376/comments","events_url":"https://api.github.com/repos/BorisMoore/jsviews/issues/376/events","html_url":"https://github.com/BorisMoore/jsviews/issues/376","id":223044367,"number":376,"title":"Support template script defined in CDATA tag","user":{"login":"longgt","id":27258608,"avatar_url":"https://avatars3.githubusercontent.com/u/27258608?v=3","gravatar_id":"","url":"https://api.github.com/users/longgt","html_url":"https://github.com/longgt","followers_url":"https://api.github.com/users/longgt/followers","following_url":"https://api.github.com/users/longgt/following{/other_user}","gists_url":"https://api.github.com/users/longgt/gists{/gist_id}","starred_url":"https://api.github.com/users/longgt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longgt/subscriptions","organizations_url":"https://api.github.com/users/longgt/orgs","repos_url":"https://api.github.com/users/longgt/repos","events_url":"https://api.github.com/users/longgt/events{/privacy}","received_events_url":"https://api.github.com/users/longgt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-20T12:03:24Z","updated_at":"2017-04-23T23:41:44Z","closed_at":null,"body":"In template script, if condition have more than 1 (conjunction is &&) and included in JSF page, when JSF page is loaded, an exception will be throw.\r\n\r\nJSF does not accept special characters such as  && in script tag without **CDATA**.\r\n\r\nIn case of adding template script in **CDATA**, JsView does not render template properly.\r\nFor example\r\n```\r\n<script type=\"text/javascript\">\r\n//<![CDATA[\r\n           {{if a && b}}\r\n               c\r\n           {{/if}}\r\n //]]>\r\n</script>\r\n```\r\n\r\nHere is my temporary solution for now\r\n`Encode special characters by using url encode before including it in template script`\r\n```\r\n<script type=\"text/javascript\">\r\n//<![CDATA[\r\n           {{if a &amp;&amp; b}}\r\n               c\r\n           {{/if}}\r\n //]]>\r\n</script>\r\n```\r\n\r\nIt'll be quite cool if JsView supports template with content defined in **CDATA**."},"comment":{"url":"https://api.github.com/repos/BorisMoore/jsviews/issues/comments/296497436","html_url":"https://github.com/BorisMoore/jsviews/issues/376#issuecomment-296497436","issue_url":"https://api.github.com/repos/BorisMoore/jsviews/issues/376","id":296497436,"user":{"login":"BorisMoore","id":202658,"avatar_url":"https://avatars0.githubusercontent.com/u/202658?v=3","gravatar_id":"","url":"https://api.github.com/users/BorisMoore","html_url":"https://github.com/BorisMoore","followers_url":"https://api.github.com/users/BorisMoore/followers","following_url":"https://api.github.com/users/BorisMoore/following{/other_user}","gists_url":"https://api.github.com/users/BorisMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/BorisMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BorisMoore/subscriptions","organizations_url":"https://api.github.com/users/BorisMoore/orgs","repos_url":"https://api.github.com/users/BorisMoore/repos","events_url":"https://api.github.com/users/BorisMoore/events{/privacy}","received_events_url":"https://api.github.com/users/BorisMoore/received_events","type":"User","site_admin":false},"created_at":"2017-04-23T23:41:44Z","updated_at":"2017-04-23T23:41:44Z","body":"Can you let me know if this works for you? Thanks."}}
{"actor":{"display_login":"BorisMoore"}}