This article explains how to programmatically get headers and footers from Excel or OpenOffice files using the JavaScript via C++ API.... replace ( /&/g , '&' ) . replace ( /</g , '<'...'<' ) . replace ( />/g , '>' ) . replace ( /"/g , '"'...