It can be a real pain to track down, and the symptoms are very subtle - often a stray > with a few chars exactly as you have expeienced.