vmg / rinku

Autolinking. Ruby. Yes, that's pretty much it.
ISC License
597 stars 67 forks source link

Quoted URLs include the closing quote when auto linked #67

Closed SeanSmithers closed 7 years ago

SeanSmithers commented 7 years ago

Example:

text = 'some text "http://example.com/" some text'
=> "some text \"http://example.com/\" some text"

 Rinku.auto_link(text, :all)
=> "some text  \"<a href=\"http://example.com/&quot;\">http://example.com/\"</a> some text"

The href http://example.com/&quot; is incorrect here.

Related to https://github.com/vmg/rinku/issues/46 ?