What Is a Yellow Knight?

A yellow knight is a firm that was planning a hostile acquisition but then decided against it and instead proposed a merger of equals with the target company.