jQuery: How to Strip/Remove HTML tags
In this short post, find jQuery code to strip/remove HTML tags. To remove HTML tags, use text() function which returns only the text content and ignores the HTML portion. console.log($('#dvTest').text()); You can also strip/remove HTML tags from any variable as well as text() is jQuery function, so the variable needs to be converted into a […]