예제 #1
0
파일: forms.py 프로젝트: Jyrno42/EstLan-Web
 def clean_comment(self):
     data = self.cleaned_data['comment']
     return sanitize_html(data, tags='p i strong b u a pre br', attrs='href')
예제 #2
0
def short_text(value):
    return sanitize_html(value, tags="i strong b u a")
예제 #3
0
def short_text(value):
    return sanitize_html(value, tags='i strong b u a')
예제 #4
0
def comment_text(value):
    return sanitize_html(value, tags="p i strong b u a pre br", attrs="href")
예제 #5
0
def comment_text(value):
    return sanitize_html(value, tags='p i strong b u a pre br', attrs='href')