From a1f1716f5ccf521dbd44b6d0834df5dd421e27ce Mon Sep 17 00:00:00 2001 From: liangjiami <2249412933@qq.com> Date: Thu, 17 Jul 2025 16:27:14 +0800 Subject: [PATCH] =?UTF-8?q?1=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/mobile/topic_nas/help_detail.html | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/app/index/view/mobile/topic_nas/help_detail.html b/app/index/view/mobile/topic_nas/help_detail.html index 91a91a7d..7058a35a 100644 --- a/app/index/view/mobile/topic_nas/help_detail.html +++ b/app/index/view/mobile/topic_nas/help_detail.html @@ -175,28 +175,28 @@ }) }, 300); }); - // 英文截断处理 - $('#rendered-content').html(function(i, html) { - // 1. 保护只包含 的标签(包括嵌套情况) - html = html.replace(/<([a-zA-Z][a-zA-Z0-9]*)(?:\s+[^>]*)?>(?:\s*<[^>]+>\s*)*( | )*(?:\s*<\/[^>]+>\s*)*<\/\1>/g, function(match) { - // 统一格式为   - var tagName = match.match(/^<([a-zA-Z][a-zA-Z0-9]*)/)[1]; - return '<' + tagName + '> '; - }); + // // 英文截断处理 + // $('#rendered-content').html(function(i, html) { + // // 1. 保护只包含 的标签(包括嵌套情况) + // html = html.replace(/<([a-zA-Z][a-zA-Z0-9]*)(?:\s+[^>]*)?>(?:\s*<[^>]+>\s*)*( | )*(?:\s*<\/[^>]+>\s*)*<\/\1>/g, function(match) { + // // 统一格式为   + // var tagName = match.match(/^<([a-zA-Z][a-zA-Z0-9]*)/)[1]; + // return '<' + tagName + '> '; + // }); - // 2. 替换其他情况下的 (后面跟着字母或数字) - html = html.replace(/ (?=[a-zA-Z0-9])/g, ' '); + // // 2. 替换其他情况下的 (后面跟着字母或数字) + // html = html.replace(/ (?=[a-zA-Z0-9])/g, ' '); - return html; - }); + // return html; + // }); - // 添加CSS样式 - $('#rendered-content').css({ - 'word-wrap': 'break-word', - 'overflow-wrap': 'break-word', - 'word-break': 'normal', - 'white-space': 'normal', - }); + // // 添加CSS样式 + // $('#rendered-content').css({ + // 'word-wrap': 'break-word', + // 'overflow-wrap': 'break-word', + // 'word-break': 'normal', + // 'white-space': 'normal', + // }); });