I'm working in Python2.7 as a beginner. I want to parse and modify some html file. For this I'm using Beautiful Soup and lxml is also one option. Now the problem is Can I surround a text with some html tag by modifying the html. The text is directly under the 'body' tag , So what ever text is directly under the body tag I want to modify the html so that I can get the text under my desired tag. So I can parse it and find out the location of this text easily.
<html><body>
<b>List Price:</b>
<strike>$150.00</strike><br />
<b>Price</b>
$117.80<br />
<b>You Save:</b>
$32.20(21%)<br />
<font size="-1" color="#009900">In Stock</font>
<br />
<a href="/gp/aw/help/id=sss/ref=aw_d_sss_shoes">Free Shipping</a>
<br/>
Ships from and sold by Amazon.com<br />
Gift-wrap available.<br /></body></html>
So here In this example I want to surround the text '$117.80' and '$32.20' with some user html tag. How can I achieve this with Beautifulsoup or lxml.