tanoku/rinku — pull request #17 by henare (2011-12-08 03:38:31+00:00)
Title: Rinku should escape unencoded Rails input

I've seen #14 but I don't think Rinku is behaving in the expect way. The existing code simply marks any potentially dangerous input as safe, processes it and returns it.

I think it should encode input that's not marked html_safe and then always return text that's marked html_safe. The attached code does this.

Sorry for the lack of tests but RailsRinku is not currently tested and I wasn't entirely sure how to set up the tests for that module.