I created this test case: http://jsfiddle.net/ccQnK/1/ , I used the Javascript replace function with regular expressions to get the results that you want.
$(document).ready(function() {
var myContent = 'Hello world!
';
alert(myContent.replace(/(<([^>]+)>)/ig,""));
});