diff --git a/www/js/app.js b/www/js/app.js index 7c7d2db1..c4ea398f 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1553,7 +1553,10 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'abstractFile //Some documents (e.g. Ray Charles Index) can't be scrolled to the very end, as some content remains benath the footer //so add some whitespace at the end of the document - htmlArticle = htmlArticle.replace(/(<\/body>)/i, "

 

 

 

 

\r\n$1"); + htmlArticle = htmlArticle.replace(/(dditional terms may apply for the media files[^<]+<\/div>\s*)/i, "$1\r\n

 

 

 

 

\r\n"); + + //@TODO - remove this when issue fixed: VERY DIRTY PATCH FOR HTML IN PAGE TITLES on Wikivoyage + htmlArticle = htmlArticle.replace(/<a href[^"]+"\/wiki\/([^"]+)[^<]+>([^<]+)<\/a>/ig, "$2"); //Fast-replace img src with data-kiwixsrc and hide image [kiwix-js #272] htmlArticle = htmlArticle.replace(/(]*\b)src(\s*=)/ig, "$1data-kiwixsrc$2");