Fix: don't use CDATA sections in src/convert.

CDATA sections can only be used in XHTML.
Port view_loadout_history to DOM.
Snip lines in long diffs.