Escape quotes in metadata description

このコミットが含まれているのは:
Omar Roth 2018-07-23 09:16:33 -05:00
コミット 0bb1da6bfd
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -401,7 +401,7 @@ get "/watch" do |env|
description = video.description.gsub("<br>", " ")
description = description.gsub("<br/>", " ")
description = XML.parse_html(description).content[0..200].gsub("\n", " ").strip(" ")
description = XML.parse_html(description).content[0..200].gsub('"', "&quot;").gsub("\n", " ").strip(" ")
if description.empty?
description = " "
end