I'm testing an Angular Directive where I use $compile to create an instance of the directive in the DOM. The markup for the element which the directive is attached to uses an ng-class with an expression inside. The special characters for that expression are being turned into their "safe" equivalents.
<article my-directive
ng-class="(selectedItems.length > 1 && asset.selected === true) ? 'class1' : 'class2'">
</article>
Looking at the HTML output by the $compile in the test:
'ng-class="(selectedItems.length > 1 && asset.selected === true) ? class1: class2"'