I got stuck with these problem and hope you can point me in the right direction.
Here is the fiddle.
Explainer
1) I receive some template html via ajax request, everything works fine this is what it looks:
<div>
<h2 class="splash" ng-bind="view.headline || 'That's cool'"></h2>
</div>
As you already know if the view.headline this will output That's cool
2) Adding the template to the dom (just pseudo code)
<div id="thisIsMyTemplatePlaceholder"></div>
<script>
var templateFromAjax="<h2 ng-bind=\"view.headline||'That's cool'\"></h2>";
$("#thisIsMyTemplatePlaceholder").html(templateFromAjax);
</script>
3) Inspect the added HTML you see three '(apostrophe) on the ng-bind attribute and this causes the my error
<div id="thisIsMyTemplatePlaceholder">
<h2 ng-bind="view.headline||'That's cool'"></h2>
</div>
4) The Problem seems to be the jQuery.html() function because it decodes the specialcharacters.
jquery is transforming this: 'That's cool' into 'That's'