mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 14:49:23 +02:00
See #170: RSS feeds for channels
This commit is contained in:
parent
a04b0b706b
commit
9c22a72ed1
18 changed files with 923 additions and 6 deletions
|
@ -291,6 +291,10 @@ def render_html(text, content_type):
|
|||
return clean_html(rendered).strip().replace("\n", "")
|
||||
|
||||
|
||||
def render_plain_text(html):
|
||||
return bleach.clean(html, tags=[], strip=True)
|
||||
|
||||
|
||||
@transaction.atomic
|
||||
def attach_content(obj, field, content_data):
|
||||
from . import models
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue