Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3959382
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:43:25+00:00 2026-05-20T02:43:25+00:00

<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

  • 0
<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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:43:25+00:00Added an answer on May 20, 2026 at 2:43 am

    @kiran: Perhaps something like —

    <script type="text/javascript">
        function getInfo(Description) {
            var tmp = Description.replace(/(<([^>]+)>)/ig,"");
            return tmp.replace(/\n/g, "<br>")
        }
        var somevar;
        somevar  = "<div><p><input type=\"radio\" name=\"choice\"><span>text1</span></p>\n";
        somevar += "<p><input type=\"radio\" name=\"choice\"><span>text2</span></p>\n";
        somevar += "<p><input type=\"radio\" name=\"choice\"><span>text3</span></p>\n";
        somevar += "<p><input type=\"radio\" name=\"choice\"><span>text4</span></p>\n";
    
        document.write(getInfo(somevar));
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following HTML: <div class=row1> <input type=radio name=group1 value=0 checked=checked/>Zero <input type=radio
Here is the code I am having: <div id=removequestions></div> var html += '<input type=radio
This is my div: <div id=demo align=center value=1> <h3>By Color</h3> <input type=radio name=group1 id=color1
Hallo all. I got this piece of code: <div> <input id=id1 name=radioButton type=radio> <input
I toggle a div using something like this - <input type=radio name=myRadio value=myDiv_1 />MyDiv
I have 3 radio buttons <div id=test> <input type=radio id=time1 name=radio value=1 /><label for=time1>Test
I have a div which contain lots of input[type=text] fields. I want to put
I have input text: <div><label wicket:for=name>Name</label><input type=text wicket:id=name /></div> Now I need to add
Possible Duplicate: add an image to a html type input check box or radio
I have a form ive created as follows <label>Search:</label> <form name=findrecipe action=#> <input type=radio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.