I would like to read a html file and only body part should store in a variable(without html tags) . How can i get the soln?
Here is the html:
<HTML><HEAD><TITLE>Mathematics Enrichment Workshop: The Perfect Number Journey</TITLE>
<P>Mathematicians and nonmathematicians have been fascinated for centuries by
the properties and patterns of numbers. They have noticed that some numbers are
equal to the sum of all of their <FONT color=red><B>factors</B></FONT> (not
including the number itself). The smallest such example is <FONT
color=red>6</FONT>, since <FONT color=red>6</FONT> = 1 + 2 + 3. Such numbers are
called <FONT color=red><B>perfect numbers</B></FONT>.
<P>The search for perfect numbers began in ancient times. The first three
perfect numbers: <FONT color=red>6</FONT>, <FONT color=red>28</FONT> and <FONT
color=red>496</FONT> were known to the ancient mathematicians since the time of
Pythagoras (circa 500 BC).