I have a variable that contains a string of text and html tags, such as:
var temp = \"Some textMore texthere>
More texthere>
You could try the jquery plugin HTML Clean. In the example they provide:
$.htmlClean("Nested P Test", {format:true}); => Nested P Test
Nested P Test", {format:true}); =>
You can replace specific tags with {removeTags:[p]} and it will still render the contents just not the tag.
{removeTags:[p]}