Trying to do angular.element(stringWithHtmlStructure);
causes
Error: Syntax error, unrecognized expression: <div id="foo">bar</div>
in jquery 1.9.1, however it works in jquery 1.8.3
Is it an issue or a feature? Security one perhaps? How do I deal with it?
1.8.3 example http://plnkr.co/edit/ZYYKIixcYzOL46hq0puS?p=preview 1.9.1 example http://plnkr.co/edit/ETmQMY8KoCP0gaKdSrMD?p=preview
It's definitely not a problem with any of the angular stuff, doing $(stringWithHtmlStructure)
fails just the same, as you can see here http://plnkr.co/edit/FqvOKZ62t0IJ57cT05ew?p=preview