mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-16 00:09:05 +00:00
Decode HTML entities in comments, make blockquotes smaller
Flask escapes < > etc, and the markdown parser does not consider > as > aka blockquote. Fixed by decoding HTML source before rendering markdown.
This commit is contained in:
@@ -182,7 +182,7 @@ class DisabledSelectField(SelectField):
|
||||
|
||||
class CommentForm(FlaskForm):
|
||||
comment = TextAreaField('Make a comment', [
|
||||
Length(min=3, max=1024, message='Comment must be at least %(min)d characters '
|
||||
Length(min=3, max=2048, message='Comment must be at least %(min)d characters '
|
||||
'long and %(max)d at most.'),
|
||||
DataRequired(message='Comment must not be empty.')
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user