From f5728a4f9202b5c81fe65f7be8d5e5c250e84f4b Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 6 Feb 2013 21:06:08 +0800 Subject: [PATCH] Enable designer to add the class "page_breadcrumb" --- lib/parsers/parser_front_end.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/parsers/parser_front_end.rb b/lib/parsers/parser_front_end.rb index 385b4f82..94f7cc65 100644 --- a/lib/parsers/parser_front_end.rb +++ b/lib/parsers/parser_front_end.rb @@ -97,9 +97,7 @@ module ParserFrontEnd def parse_breadcrumb(body, page, site) page_breadcrumb = body.css('.page_breadcrumb').first if page_breadcrumb - res = "
" - res << "
" - res << "
" + res = "" fragment = Nokogiri::HTML::DocumentFragment.new(body, res) page_breadcrumb.swap(fragment) else