|
|
let newContent= html.replace(/\<img/gi, '<img style="width:100%;height:auto;display:block;"'); |
|
|
let newContent= html.replace(/\<img/gi, '<img style="width:100%;height:auto;display:block;"').replace(/\<div style=\"/gi,'<div style="width:100%;word-break:break-all;word-wrap:normal;').replace(/\s{2,}/g,"") |