Skip to content

Commit

Permalink
#2 修复:增加html特殊字符处理,避免日志中的标签字样无法显示
Browse files Browse the repository at this point in the history
  • Loading branch information
gotoeasy committed Feb 20, 2023
1 parent 9c1a482 commit ebeab2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glc/www/web/src/views/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<template #default="scope">
<div class="x-detail">
<el-scrollbar :class="{'x-scrollbar':(scope.row.detail && scope.row.detail.split('\n').length>20)}">
<div v-html="(scope.row.detail || scope.row.text).replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\n/g, '<br>')" style="word-break: break-all;"></div>
<div v-html="(scope.row.detail || scope.row.text).replace(/</g, '&amp;lt;').replace(/>/g, '&amp;gt;').replace(/\n/g, '<br>')" style="word-break: break-all;"></div>
</el-scrollbar>
</div>
</template>
Expand Down

0 comments on commit ebeab2b

Please sign in to comment.