将富文本截取为纯文字

34 阅读1分钟
  subText() {
      let reg = /<[^>]*>/g
      return this.getLength(this.companyInfo.remark.replaceAll(reg,'') || '')
      //return this.getLength(this.text)
    }