/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function stripHTML(string) {
return string.replace(/<(.|\n)*?>/g, '');
}
URL: http://stackoverflow.com/questions/24816/escaping-strings-with-jquery
Comments
 Subscribe to comments
                    Subscribe to comments
                
                