diff --git a/lib/ronn/template.rb b/lib/ronn/template.rb index 2c89667..ead7e52 100644 --- a/lib/ronn/template.rb +++ b/lib/ronn/template.rb @@ -1,4 +1,5 @@ require 'mustache' +require 'hpricot' module Ronn class Template < Mustache @@ -36,10 +37,11 @@ def name_and_section? def title if !name_and_section? && tagline - tagline + result = tagline else - [page_name, tagline].compact.join(' - ') + result = [page_name, tagline].compact.join(' - ') end + Hpricot(result).to_plain_text end def custom_title?