|
|
@ -59,16 +59,16 @@ object HtmlFormatter { |
|
|
|
|
|
|
|
|
|
|
|
do{ |
|
|
|
do{ |
|
|
|
val url = matcher.group(1)!! |
|
|
|
val url = matcher.group(1)!! |
|
|
|
val pos = url.indexOf(',') |
|
|
|
val urlBefore = url.substringBefore(',') |
|
|
|
sb.append(keepImgHtml.substring(appendPos, matcher.start()).replace("\n","\n ")) //非图片部分换行缩减 |
|
|
|
sb.append(keepImgHtml.substring(appendPos, matcher.start()).replace("\n","\n ")) //非图片部分换行缩减 |
|
|
|
sb.append( |
|
|
|
sb.append( |
|
|
|
"<img src=\"${ |
|
|
|
"<img src=\"${ |
|
|
|
NetworkUtils.getAbsoluteURL( |
|
|
|
NetworkUtils.getAbsoluteURL( |
|
|
|
redirectUrl, |
|
|
|
redirectUrl, |
|
|
|
url.substring(0, pos) |
|
|
|
urlBefore |
|
|
|
) |
|
|
|
) |
|
|
|
},${ |
|
|
|
}${ |
|
|
|
url.substring(pos) |
|
|
|
url.substring(urlBefore.length) |
|
|
|
}\">" |
|
|
|
}\">" |
|
|
|
) |
|
|
|
) |
|
|
|
appendPos = matcher.end() |
|
|
|
appendPos = matcher.end() |
|
|
|