title: Web scraping and parsing HTML in R
body: <p>I'm trying to parse this webpage into a dataframe but keep getting stuck using the XML package being told it's not XML. </p>
  
  <p>I would like to take the below text and convert into a table/data.frame - what is the easiest way to do this after i've taken the URL text and htmlParsed it?</p>
  
  <p>doc = getURL("<a href="http://m.racingpost.com/card/blocks.sd?race_id=first&amp;r_date=2015-03-28&amp;tab=card&amp;view=meetings&amp;blocks=cards-list&amp;_=1427439140572" rel="nofollow">http://m.racingpost.com/card/blocks.sd?race_id=first&amp;r_date=2015-03-28&amp;tab=card&amp;view=meetings&amp;blocks=cards-list&amp;_=1427439140572</a>")
  doc = htmlParse(doc, asText=T)</p>