Return to Snippet

Revision: 723
at August 2, 2006 10:23 by cochambre


Initial Code
function stripHtml(s) {
	return s.replace(/\\&/g, '&amp;').replace(/\\</g, '&lt;').replace(/\\>/g, '&gt;').replace(/\\t/g, '&nbsp;&nbsp;&nbsp;').replace(/\\n/g, '<br />');
}

Initial URL

                                

Initial Description

                                

Initial Title
Strip HTML tags from string

Initial Tags
html

Initial Language
JavaScript