const regex = new RegExp('<img', 'gi') res.details = details.replace(regex, `<img style="max-width: 100%; height: auto"`);