- 
Strip HTML Tags from a String using Regular Expressions
Whilst writing some code to search forum posts I had the reason to remove all HTML tags from the forum posts before I could do a valid phrase search. I created the following function: public static string StripDecodeHtml(string content){ content = HttpUtility.HtmlDecode(content); string myTagPattern = @”]*>(?<text>.*?)“; Regex myTagRegex = new Regex(myTagPattern, RegexOptions.Compiled |RegexOptions.IgnoreCase|RegexOptions.Singleline); // do until no more tags…
 
Recent Categories
- AJAX (1)
 - APIM (7)
 - Application Insights (3)
 - ARM (2)
 - asp.net (12)
 - authentication (1)
 - Azure (23)
 - Azure Function (7)
 - Bash (2)
 - bicep (5)
 - BizTalk (3)
 - blob storage (1)
 - Business (1)
 - button (2)
 - c# (7)
 - CI/CD (7)
 - code coverage (1)
 - connection (2)
 - cross browser (1)
 - css (2)
 - D365 (1)
 - database (2)
 - debug (4)
 - deployment (6)
 - deployment slot (1)
 - devops (6)
 - durable (1)
 - firefox (3)
 - General (32)
 - html (2)
 - ie (4)
 - Integration Monitoring (4)
 - javascript (5)
 - Key Vault (4)
 - liquid transformation (2)
 - Logic App (5)
 - Logic App (Std) (6)
 - Monitoring (4)
 - Nodinite (4)
 - Office (1)
 - ordered lists (1)
 - postback (1)
 - Postman (1)
 - regular expressions (4)
 - Service Bus (3)
 - sftp (1)
 - sql (3)
 - terraform (1)
 - Uncategorized (2)
 - unordered lists (1)
 - visual studio (6)
 - VS Code (1)
 - winforms (2)
 - xml (3)
 - xslt (2)
 - yaml (3)
 - yui (1)
 - zero downtime (1)
 
Recent Posts
Post Archive
- September 2025
 - August 2025
 - May 2025
 - March 2025
 - February 2025
 - September 2024
 - August 2024
 - July 2024
 - June 2024
 - May 2024
 - April 2024
 - December 2023
 - September 2023
 - April 2023
 - February 2023
 - January 2023
 - December 2022
 - November 2022
 - September 2022
 - August 2022
 - April 2022
 - February 2022
 - January 2022
 - December 2021
 - March 2018
 - February 2017
 - October 2013
 - September 2013
 - October 2008
 - May 2008
 - April 2008
 - March 2008
 - February 2008
 








