title: Strip HTML tags and attributes except allowed in TSQL
body: <p>Is there any function or procedure that allows to strip only not allowed attributes and tags from html text in MSSQL ?</p>
  
  <p>for example allowed elements are: </p>
  
  <pre><code>a[href|target=_blank],strong,b,div[align],br,p[align|class]
  </code></pre>
  
  <p>or something like that</p>