{"action":"created","issue":{"url":"https://api.github.com/repos/fraywing/textAngular/issues/635","labels_url":"https://api.github.com/repos/fraywing/textAngular/issues/635/labels{/name}","comments_url":"https://api.github.com/repos/fraywing/textAngular/issues/635/comments","events_url":"https://api.github.com/repos/fraywing/textAngular/issues/635/events","html_url":"https://github.com/fraywing/textAngular/issues/635","id":67421256,"number":635,"title":"form html tag is not working with ta-bind","user":{"login":"klaszlo","id":140974,"avatar_url":"https://avatars.githubusercontent.com/u/140974?v=3","gravatar_id":"","url":"https://api.github.com/users/klaszlo","html_url":"https://github.com/klaszlo","followers_url":"https://api.github.com/users/klaszlo/followers","following_url":"https://api.github.com/users/klaszlo/following{/other_user}","gists_url":"https://api.github.com/users/klaszlo/gists{/gist_id}","starred_url":"https://api.github.com/users/klaszlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klaszlo/subscriptions","organizations_url":"https://api.github.com/users/klaszlo/orgs","repos_url":"https://api.github.com/users/klaszlo/repos","events_url":"https://api.github.com/users/klaszlo/events{/privacy}","received_events_url":"https://api.github.com/users/klaszlo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-09T18:19:17Z","updated_at":"2015-04-09T18:29:42Z","closed_at":"2015-04-09T18:29:42Z","body":"The < form > html tag is not working inside ta-bind directive. \r\nHere is a simple demo:\r\n```\r\n$scope.probe = \r\n    '  <h4>Login</h4>\\n' +\r\n    '  <form id=\"login\">\\n' +\r\n    '    <fieldset>\\n' +\r\n    '      <div class=\"form-group\">\\n' +\r\n    '        <label for=\"login-name\">Name</label>\\n' +\r\n    '        <input id=\"login-name\" class=\"form-control\" type=\"text\">\\n' +\r\n    '      </div>\\n' +\r\n    '      <input id=\"login-submit\" class=\"btn btn-primary\" value=\"Register\" type=\"submit\">\\n' +\r\n    '    </fieldset>\\n' +\r\n    '  </form>\\n';\r\n```\r\nand in html:\r\n```\r\n<div ta-bind=\"text\" ng-model=\"probe\" ta-readonly='disabled'></div>\r\n```\r\n\r\nIt strips out all the input and form elements (also select, option html element)"},"comment":{"url":"https://api.github.com/repos/fraywing/textAngular/issues/comments/91319598","html_url":"https://github.com/fraywing/textAngular/issues/635#issuecomment-91319598","issue_url":"https://api.github.com/repos/fraywing/textAngular/issues/635","id":91319598,"user":{"login":"klaszlo","id":140974,"avatar_url":"https://avatars.githubusercontent.com/u/140974?v=3","gravatar_id":"","url":"https://api.github.com/users/klaszlo","html_url":"https://github.com/klaszlo","followers_url":"https://api.github.com/users/klaszlo/followers","following_url":"https://api.github.com/users/klaszlo/following{/other_user}","gists_url":"https://api.github.com/users/klaszlo/gists{/gist_id}","starred_url":"https://api.github.com/users/klaszlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klaszlo/subscriptions","organizations_url":"https://api.github.com/users/klaszlo/orgs","repos_url":"https://api.github.com/users/klaszlo/repos","events_url":"https://api.github.com/users/klaszlo/events{/privacy}","received_events_url":"https://api.github.com/users/klaszlo/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T18:29:42Z","updated_at":"2015-04-09T18:29:42Z","body":"I'm sorry it is offtopic. There is a sanitizer inside textAngular, and also a whitelist for tags.\r\nBut thinking through my original problem, I should not use textAngular with forms. \r\nI use ng-if, for displaying textAngular *while* editing the content. And ng-bind-html when not."}}