This commit is contained in:
晚风拂柳颜 2023-07-28 16:04:59 +08:00
parent b4e3728c93
commit bb67bcfa32
2 changed files with 4 additions and 3 deletions

View File

@ -78,8 +78,9 @@
<input type="text" class="input">
<button id="sendMsg" class="btn">发送</button>
</div>
<div id="log-container">
<div id="log-container" contenteditable="true">
<div id="msg">
</div>
</div>
<div class="support"></div>
@ -278,7 +279,7 @@
text: '确认',
btnClass: 'btn-primary',
action: function() {
$("#log-container div").text('');
$("#log-container div").html('');
}
},
cancel: {

View File

@ -208,7 +208,7 @@ public class HtmlParser {
Matcher m = URLJOIN_ATTR.matcher(option);
Matcher n = SPECIAL_URL.matcher(result);
//if (isUrl(option)) {
if (m.find() && !n.find() {
if (m.find() && !n.find()){
if (result.contains("http")) {
result = result.substring(result.indexOf("http"));
} else {