Permalink
Browse files

Remove all <br> tags from external /quote API

  • Loading branch information...
1 parent 915384f commit 32ec0920b6e25dc8d3d418632dda6bc3eb426663 @jarmo committed May 26, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 hackersays.rb
View
@@ -56,7 +56,9 @@ def random_quotes
get '/quote' do
content_type 'application/json', :charset => 'utf-8'
- Yajl::Encoder.encode random_quotes.first
+ quote = random_quotes.first
+ quote[:c].gsub!("<br>", $/)
+ Yajl::Encoder.encode quote
end
get '/quotes' do

0 comments on commit 32ec092

Please sign in to comment.