1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:05:55 +00:00

offline: render headlines list using local data

This commit is contained in:
Andrew Dolgov
2009-02-03 19:09:59 +03:00
parent 6a2034f9ff
commit 261b88b39c
2 changed files with 163 additions and 1 deletions

View File

@@ -2109,3 +2109,13 @@ function transport_error_check(transport) {
return true;
}
function strip_tags(s) {
return s.replace(/<\/?[^>]+(>|$)/g, "");
}
function truncate_string(s, length) {
if (!length) length = 30;
var tmp = s.substring(0, length);
if (s.length > length) tmp += "&hellip;";
return tmp;
}