more html5 validation
This commit is contained in:
parent
eb2fa5c9ba
commit
d56bf4f265
3 changed files with 23 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue