Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

admin html rendering #71

Open
Noslenesilv opened this issue Nov 8, 2018 · 2 comments
Open

admin html rendering #71

Noslenesilv opened this issue Nov 8, 2018 · 2 comments

Comments

@Noslenesilv
Copy link

if we submit form with html in textfield, it will be rendered in admin page a workaround is to add
try: value = strip_tags(self.cleaned_data[field]) except: value = self.cleaned_data[field]
in save method in forms.py @ line 338

@Noslenesilv
Copy link
Author

well i override change_form.html in admin templates of djangocms_forms, but i believe a default behaviour of showing data in admin/sent email is not to render html ... if you agree and see no future problems in adding strip tags in save method i can do it at home later

@marcosguedes
Copy link

Same. I've pasted a form snippet in a TextField and it rendered on the admin
selection_217

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants