diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-02-14 18:56:16 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-02-14 19:03:40 +0000 |
commit | bc0cc811e80143d0255d86433a80a823d1141dd0 (patch) | |
tree | 0c5005b2b03e540d8ab562da06539414709fbc18 /lib/make_html_4_compliant.rb | |
parent | 6fa9c17c7cd5551489a77f6e89543b7886be51d4 (diff) | |
parent | 2c5749d4d92e6601856cef6f7e2201d06d885183 (diff) |
Diffstat (limited to 'lib/make_html_4_compliant.rb')
-rw-r--r-- | lib/make_html_4_compliant.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/make_html_4_compliant.rb b/lib/make_html_4_compliant.rb index 214eb9f1f..8926d5873 100644 --- a/lib/make_html_4_compliant.rb +++ b/lib/make_html_4_compliant.rb @@ -3,7 +3,6 @@ ActionView::Helpers::TagHelper.module_eval do def tag(name, options = nil, open = false, escape = true) - "<#{name}#{tag_options(options, escape) if options}" + (open ? ">" : ">") + "<#{name}#{tag_options(options, escape) if options}#{open ? ">" : ">"}".html_safe end end - |