remove br
This commit is contained in:
parent
3641e5787c
commit
1666feaff0
|
@ -7,10 +7,10 @@ class BreadcrumbWidgetsController < ApplicationController
|
||||||
crumbs.each do |crumb|
|
crumbs.each do |crumb|
|
||||||
if crumb == ""
|
if crumb == ""
|
||||||
p = Page.root
|
p = Page.root
|
||||||
data << {"page_name" => p.name, "url" => "/#{locale.to_s}" + p.url}
|
data << {"page_name" => p.name.gsub('<br>',''), "url" => "/#{locale.to_s}" + p.url}
|
||||||
else
|
else
|
||||||
p = Page.where(:page_id => crumb).first
|
p = Page.where(:page_id => crumb).first
|
||||||
data << {"page_name" => p.name, "url" => "/#{locale.to_s}" + p.url}
|
data << {"page_name" => p.name.gsub('<br>',''), "url" => "/#{locale.to_s}" + p.url}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue