fixed up escaping of > and < symbols