This is my code and everything works well however there are little boxes after most lines and guess this is where someone hit the space bar after entering it on the online form??

How can I remove it??


VB Code:
  1. ssource = Inet1.OpenURL("http://www.mysite.com/application/get_news.php?id=" & Form1.Text2.Text)
  2. lStart = 1
  3. lEnd = 1
  4. sFindStart = "##"
  5. sFindEnd = "/##"
  6. lStart = InStr(lStart, ssource, sFindStart, vbTextCompare)
  7. If lStart Then
  8. lStart = lStart + Len(sFindStart)
  9. lEnd = InStr(lStart, ssource, sFindEnd, vbTextCompare)
  10. If lEnd > lStart Then
  11. Body = Mid$(ssource, lStart, lEnd - lStart)
  12. NewBody = Replace(Body, "<p>", vbCrLf)
  13. NewBody2 = Replace(NewBody, "</p>", vbCrLf)
  14. NewBody3 = Replace(NewBody2, "</br>", vbCrLf)
  15. NewBody4 = Replace(NewBody3, "<br>", vbCrLf)
  16. Text5.Text = NewBody4
  17. 'Text5.Text = Mid$(ssource, lStart, lEnd - lStart)
  18. Else
  19. Debug.Print "End text not found."
  20. End If
  21. Else
  22. Debug.Print "Text not found."
  23. End If