From 0bb1da6bfd4362e3285f587f652ff417c9f43eb6 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 23 Jul 2018 09:16:33 -0500 Subject: [PATCH] Escape quotes in metadata description --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 84eb3dde..d7e1da46 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -401,7 +401,7 @@ get "/watch" do |env| description = video.description.gsub("
", " ") description = description.gsub("
", " ") - description = XML.parse_html(description).content[0..200].gsub("\n", " ").strip(" ") + description = XML.parse_html(description).content[0..200].gsub('"', """).gsub("\n", " ").strip(" ") if description.empty? description = " " end