<div><p><input type="radio" name="choice"><span>text1</span></p>
<p><input type="radio" name="choice"><span>text2</span></p>
<p><input type="radio" name="choice"><span>text3</span></p>
<p><input type="radio" name="choice"><span>text4</span></p>
</div>
i want to remove the html tags , also i need to get all the data in new line, i can get the data using following code, but how i insert line between them ?
code for getting text without tags in a single line ?
function getInfo(Description) {
return Description.replace(/(<([^>]+)>)/ig,"");
}
i want output like
text1
text2
text3
@kiran: Perhaps something like —