summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/invidious/videos.cr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 7964aa40..f1b8e3f8 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -806,10 +806,10 @@ struct Video
def short_description
short_description = self.description_html.gsub(/(<br>)|(<br\/>|"|\n)/, {
- "<br>" => " ",
- "<br/>" => " ",
- "\"" => "&quot;",
- "\n" => " ",
+ "<br>": " ",
+ "<br/>": " ",
+ "\"": "&quot;",
+ "\n": " ",
})
short_description = XML.parse_html(short_description).content[0..200].strip(" ")