Skip to content

Commit

Permalink
Removing markup from breadcrumb titles
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed Mar 5, 2019
1 parent 62df2d1 commit 6eb0721
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/presenters/rtl_show_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def override_title_field
end

def html_title
super.split("<br />").map(&:html_safe).join(", ")
super.split("<br />").map(&:html_safe).join(", ").gsub(/<.*?>/, "")
end

def field_config(field)
Expand Down
2 changes: 1 addition & 1 deletion spec/presenters/rtl_show_presenter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
field: ["بي"],
special: ["Traité sur l'art de la charpente : théorique et pratique"],
title: ["بي", "Traité sur l'art de la charpente : théorique et pratique"],
"override-title_ssim": ["Test"]
"override-title_ssim": ["<i>Test</i>"]
)
end

Expand Down

0 comments on commit 6eb0721

Please sign in to comment.