title: How convert html to BBcode in C#
body: <p>I need to convert <strong>html</strong> text into <strong>bbcodes</strong>. Where i can find how should i do this? For example, I convert links:</p>
  
  <pre><code> regex = new Regex("&lt;a href=\"(.+?)\"&gt;(.+?)&lt;/a&gt;");
   htmlCode = regex.Replace(htmlCode, "[URL]$1[/URL]");
  </code></pre>
  
  <p>How can i convert all html tags in bbcodes (and replace to empty which isn't bb codes, tag <strong>P</strong></p>