ewd by chris for FMQL - initial checkin
fixed escape of < > in id