diff options
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/post.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 = $('<a href="' + item.url + '">' + item.title + '</a>'); - var contentPreview = item.content.replace(/<[^>]+>/g, "").substring(0, 100); + var contentPreview = item.content.substring(0, 100); if (item.content.length > 100) { contentPreview += "……"; } |