Fix typo in short_description

This commit is contained in:
Omar Roth 2019-06-08 16:34:55 -05:00
parent d1635cf24e
commit eecf76c1fb
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2

View File

@ -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(" ")