Skip to content

Commit f0df74b

Browse files
committedJul 21, 2022
Doc: Add module to import
1 parent 0483e53 commit f0df74b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎handling_rich_text.md

+4
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ First, we need to add a `html` field to the table. We can do this by adding the
157157

158158
`app/models.py`: Add html field
159159
```python
160+
import bleach
161+
from markdown import markdown
162+
163+
160164
class Comment(db.Model):
161165
id = db.Column(db.Integer, primary_key=True)
162166
body = db.Column(db.String(140))

0 commit comments

Comments
 (0)
Please sign in to comment.