diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-07-23 09:16:33 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-07-23 09:16:33 -0500 |
| commit | 0bb1da6bfd4362e3285f587f652ff417c9f43eb6 (patch) | |
| tree | 0ffe0033164768d9b7a865ed89d32cda63e1c1da /src | |
| parent | bb20ec110e2844d3cff2c35af81dd031140f5784 (diff) | |
| download | invidious-0bb1da6bfd4362e3285f587f652ff417c9f43eb6.tar.gz invidious-0bb1da6bfd4362e3285f587f652ff417c9f43eb6.tar.bz2 invidious-0bb1da6bfd4362e3285f587f652ff417c9f43eb6.zip | |
Escape quotes in metadata description
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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("<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? description = " " end |
