You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
I’ve tried django-softhyphen as a template filter with Django 1.9.1, Python 3.4
When I leave autoescape on (the default), I get all the escaped, so they are being displayed as on the web page. So I have to turn off autoescape for the fields where want hyphenation, which might be a security problem, and causes problems when there are & or < in the text fields, which are then interpreted as HTML syntax. I had a company name with & and no space afterwards, which displayed as a funny special character. Putting a space after the & avoids this, but it’s still wrong HTML.
The text was updated successfully, but these errors were encountered:
I’ve tried django-softhyphen as a template filter with Django 1.9.1, Python 3.4
When I leave autoescape on (the default), I get all the escaped, so they are being displayed as on the web page. So I have to turn off autoescape for the fields where want hyphenation, which might be a security problem, and causes problems when there are & or < in the text fields, which are then interpreted as HTML syntax. I had a company name with & and no space afterwards, which displayed as a funny special character. Putting a space after the & avoids this, but it’s still wrong HTML.
The text was updated successfully, but these errors were encountered: