node js 转 app 协议,doc ,txt 文本文档转带p或者h1,h2标签类名的html 代码
例如用户协议给的是doc tx文本![image.png](https://upload-images.jianshu.io/upload_images/10949559-7d5933c147e5a242.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)我们需要给p 或者 h标签转成![image.png](https://upload-images.jianshu.io/upload_images/10949559-5e19766b2
复制链接