For HTML and XHTML and markup languages in general you indeed don’t want line-by-line ‘diffing’.
related