Let\'s say I have:
directives.directive(\'foo\', function () { return { restrict:\'A\', scope: true, link:function (scope, element, a
The element variable that is passed to your link function is a jqLite object - not a DOM object. You can obtain the DOM object with element[0] (like you could in jQuery), but jqLite provides a method for you: element.html(). Check out the docs.
element
link
element[0]
element.html()