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