The page I\'m looking at contains :
text 1 text 2 text 3 text 4
text 1
text 4
What about using jQuery?
Edit:
First you have to add the required .JS files, for that go to www.jQuery.com.
Then all you need to do is call a simple jQuery selector:
alert($("div#1").html());