mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Escape quotes in metadata description
This commit is contained in:
parent
bb20ec110e
commit
0bb1da6bfd
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ get "/watch" do |env|
|
||||||
|
|
||||||
description = video.description.gsub("<br>", " ")
|
description = video.description.gsub("<br>", " ")
|
||||||
description = 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('"', """).gsub("\n", " ").strip(" ")
|
||||||
if description.empty?
|
if description.empty?
|
||||||
description = " "
|
description = " "
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue