tanoku/rinku — Issue #14: Rinku should assume HTML encoded input
Author: rtomayko
Created: 2011-11-09 22:25:34+00:00
State: open

I'm seeing a lot of issues that seem to stem from Rinku trying to detect whether input is HTML encoded or not. #6 is one example.

Here's another:

>> Rinku.auto_link("This text is HTML encoded: http://example.com?x=1&y=2")
=> "This text is HTML encoded: http://example.com?x=1&amp;y=2"

It's actually responsible for mangling the real text in this comment even. Here's the actual text I pasted:

https://gist.github.com/846f567ad158730811a2

Input into Rinku should always be HTML encoded. Why is it re-encoding in all these circumstances?