jQuery: Using Regular Expressions to Remove HTML Tags from Content

The following is a very simple example of using jQuery to remove HTML Tags from your content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Strip HTML</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ></script> <script type="text/javascript"> $(document).ready(function () { var htmlString = $("#textbox1").val();   /* replace escaped brackets with real ones */ var htmlString2 = htmlString.replace(/&(lt|gt);/g, function…