If this is html (which it look like it is) you should probably use an html parser. Package XML can do this
library(XML)
x <- "the text I need to extractOn an entire html document, you can use
doc <- htmlParse(x)
sapply(getNodeSet(doc, "//i"), xmlValue)