fix error
This commit is contained in:
parent
106b5db942
commit
5fb447a676
|
@ -5,9 +5,9 @@ module TicketsHelper
|
|||
html = html.gsub("src=\"/uploads/","src=\"http://#{site.site_domain}/uploads/")
|
||||
temp_html = ActionView::Base.full_sanitizer.sanitize(html)
|
||||
urls = URI.extract(temp_html,["http","https"])
|
||||
urls.each do |url|
|
||||
html = html.sub(url, "<a href='#{url}' target='_blank'>#{url}</a>")
|
||||
end
|
||||
#urls.each do |url|
|
||||
# html = html.sub(url, "<a href='#{url}' target='_blank'>#{url}</a>")
|
||||
#end
|
||||
end
|
||||
return html
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue