tag helper always return a html safe string and concat two html safe strings always return a html safe string
>> a = "a".html_safe
>> b = "b".html_safe
>> ab = a+b
No need of html_safe here
tag helper always return a html safe string and concat two html safe
strings always return a html safe string
... But there's a need for test for SafeBuffer. I think it's necessary to test the concatenate using :+ in https://github.com/rails/rails/blob/master/activesupport/test/safe_buffer_test.rb and also adding test to make sure that this indeed yield a html_safe result, to make sure you didn't break anything.
@rafaelfranca you're right, but yeah agree with @sikachu would be nice to add a test that SafeBuffer + SafeBuffer = SafeBuffer
Add test to make sure that add two safe buffers always return a safe …
Make sure that check_box helper return a safe buffer
@spastorino @sikachu done!
Awesome, thanks @rafaelfranca :D