Spec and fix bug #776 by using auto_link instead of my dumb regex

This commit is contained in:
Eric Allen 2008-10-03 10:19:41 -04:00
parent 01c7fd1296
commit 05f21ebba2
4 changed files with 71 additions and 2 deletions

View file

@ -2,7 +2,7 @@
<div id="<%= dom_id(note, 'container') %>">
<h2><%= link_to("Note #{note.id}", note_path(note), :title => "Show note #{note.id}" ) %></h2>
<div id="<%= dom_id(note) %>">
<%= sanitize(textilize(note.body.gsub(/((https?:\/\/[^ \n\t]*))/, '"\1":\2'))) %>
<%= sanitize(markdown(auto_link(note.body))) %>
<div class="note_footer">
<%= link_to_remote(