looks like angular-ui bootstrap compiles the template like this:
https://github.com/angular-ui/bootstrap/blob/master/src/tooltip/tooltip.js#L112

not sure of the best way to get it into the directive though