more html5 validation

This commit is contained in:
Stefan Schlott 2013-08-29 09:19:54 +02:00
parent eb2fa5c9ba
commit d56bf4f265
3 changed files with 23 additions and 19 deletions

View file

@ -21,7 +21,7 @@ def tweet_to_html(tweet)
end
result = html_escape(result)
links.each_with_index do |link,n|
result.gsub!("{{{link#{n}}}}", "<a href=\"#{link}\">(Link)</a>")
result.gsub!("{{{link#{n}}}}", "<a href=\"#{html_escape(link)}\">(Link)</a>")
end
return result
end