Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (20.3k points)

Can we have multiple <tbody> tags in same <table>? If yes then in what scenarios should we use multiple <tbody> tags?

1 Answer

0 votes
by (40.7k points)

Try using the code given below:

function strip(html)

{

   var tmp = document.createElement("DIV");

   tmp.innerHTML = html;

   return tmp.textContent || tmp.innerText || "";

}

Note: If you're running in a browser, then the easiest way is just to let the browser do it for you. For more information, have a look at this: http://jsfiddle.net/8JSZX/

Related questions

0 votes
1 answer
0 votes
1 answer
asked Sep 9, 2019 in Web Technology by Tech4ever (20.3k points)
0 votes
1 answer
0 votes
1 answer
asked Aug 26, 2019 in BI by Vaibhav Ameta (17.6k points)

Browse Categories

...