/*! * Jodit Editor (https://xdsoft.net/jodit/) * License GNU General Public License version 2 or later; * Copyright 2013-2019 Valeriy Chupurnov https://xdsoft.net */ /** * Detect if string is HTML from MS Word or Excel * * @param {string} data * @return {boolean} */ export const isHTMLFromWord = (data: string): boolean => { return ( data.search(//) !== -1 || data.search(//) !== -1 || (data.search(/style="[^"]*mso-/) !== -1 && data.search(/