brianmario / escape_utils

Faster string escaping routines for your ruby apps
MIT License
513 stars 52 forks source link

fix encoding of the escaped html safe string #66

Closed tenderlove closed 8 years ago

tenderlove commented 8 years ago

escape_html_as_html_safe was returning binary strings which will infect all the UTF-8 strings in our view layer. This patch tags the return string with the encoding of the source string so that we're not eventually forcing everything to be binary.

brianmario commented 8 years ago

:+1: