From d10e960a8d6d1b7dd122e713fa53fa190ce8498c Mon Sep 17 00:00:00 2001 From: mayx Date: Thu, 19 Jun 2025 08:51:38 +0000 Subject: Update 2 files - /assets/js/main_new.js - /_layouts/post.html--- _layouts/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_layouts/post.html') diff --git a/_layouts/post.html b/_layouts/post.html index d598c2f..4769a36 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -102,7 +102,7 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu var item = searchMap[data[j].id]; if (item) { var link = $('' + item.title + ''); - var contentPreview = item.content.replace(/<[^>]+>/g, "").substring(0, 100); + var contentPreview = item.content.substring(0, 100); if (item.content.length > 100) { contentPreview += "……"; } -- cgit 1.4.1-2-gfad0