let reg = new RegExp('<img','gi'); this.info= this.info.replace(reg,'<img style="width:100%;vertical-align: top;"');