title: Angular 2: How can I apply directives to sanitized html/innerhtml
body: <p>I am working on an application where i am getting responses in html format from a server.
  I am using the DomSanitizer's bypassSecurityTrustHtml and adding the sanitized html to my component ().</p>
  
  <p>My problem is that a few of the elements in the response contains tags to indicate a link can be buildt from the element eg: </p>
  
  <pre><code>&lt;div thisIsActuallyaLink linkParam1="foo" linkParam2="bar"&gt;clickHere&lt;/div&gt;
  </code></pre>
  
  <p>I would like to create a directive that is applied to the innerhtml, but while the html is displayed, it is not compiled with my directive...</p>
  
  <p>If anyone is wondering why converting the html is not done serverside: the response is used in several applications and the links must have different relative urls depending on the application :-(</p>