Commit cc0e9d4d by xiexiaoqin

fix:修改html正则解析

parent 0b44bb4a
...@@ -4,9 +4,6 @@ ...@@ -4,9 +4,6 @@
<text class="iconfont iconicon_delete"></text> <text class="iconfont iconicon_delete"></text>
<text class="delete-task-text">{{title}}</text> <text class="delete-task-text">{{title}}</text>
</view> </view>
<view a:if="{{copy}}" class="delete-task" onTap="handleCopy"> <!--<view a:if="{{copy}}" class="delete-task" onTap="handleCopy"><text class="iconfont iconicon_delete"></text><text class="delete-task-text">{{copy}}</text></view> -->
<text class="iconfont iconicon_delete"></text>
<text class="delete-task-text">{{copy}}</text>
</view>
</view> </view>
</template> </template>
\ No newline at end of file
...@@ -329,5 +329,5 @@ export function isJSON(str) { ...@@ -329,5 +329,5 @@ export function isJSON(str) {
} }
export function removeHtml(str) { export function removeHtml(str) {
return str.replace(/<\/?.l>/g, "").replace(/<\/.+?>/g, "\n").replace(/<.+?>/g, "") return str.replace(/<\/li>/g, "\n").replace(/<.+?>/g, "")
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment