mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Fix brakeman issue by extracting gsub into a function
This commit is contained in:
parent
a82db7a67a
commit
2c494d9373
3 changed files with 7 additions and 2 deletions
|
@ -62,7 +62,7 @@
|
|||
|
||||
- if contact.street.present?
|
||||
%dt= t(:street)
|
||||
%dd{class: changing_css_class(@version,"street")}= contact.street.to_s.gsub("\n", '<br>').html_safe
|
||||
%dd{class: changing_css_class(@version,"street")}= printable_street(contact.street)
|
||||
|
||||
- if contact.city.present?
|
||||
%dt= t(:city)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue