Newby question about HTML Tags

I’ve run into a weird problem - I’m using a simple LoadVars to load a text file with HTML tags and a style sheet. Everything is working great except on one page I want to use an unordered list and this is where things go weird. The page loads fine except the text after the list will not return to the normal layout. It seems that the program is not recognizing the close tag - neither the </UL> nor the </LI> tags. Any suggestions?