function stripHtml(s) {
return s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/t/g, ' ').replace(/n/g, '<br />');
}
Strip HTML tags from string
Leave a Reply
You must be logged in to post a comment.