# HG changeset patch # User Daniel Poelzleithner # Date 1286562669 -7200 # Node ID 24e47baf5f9b3c2568b3a07bf71f40e96e8aac3b # Parent 74f1d4abf19ef5d9a33d0a95f8779979b13575c1 strip html from fallback title if the slot is used for title, make sure the html is stripped from it diff -r 74f1d4abf19e -r 24e47baf5f9b app/main/_filter_view/36_html_title.lua --- a/app/main/_filter_view/36_html_title.lua Fri Oct 08 20:06:23 2010 +0200 +++ b/app/main/_filter_view/36_html_title.lua Fri Oct 08 20:31:09 2010 +0200 @@ -17,7 +17,8 @@ -- but only if it does not contain config.app_title -- (otherwise config.app_title would appear twice in title) elseif slot.get_content( "title" ) ~= encode.html( config.app_title ) then - app.html_title.title = slot.get_content( "title" ) .. " - " + -- replace all html from the title first + app.html_title.title = string.gsub(slot.get_content( "title" ), "]*>", ""):gsub("%s+", " ") .. " - " end -- add "-" to subtitle