-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model property/method for striptags|urlize|linebreaks'd values #151
Comments
If I understand correctly, this also makes it easier to implement a On 11/02/2013 11:23, jogwen wrote:
|
I don't think so. Michele's fix strips html tags, converts any text that abc google.com and will end up as
abc
google.com
and
I doubt this can be extended with that much ease to allow for general On 11 February 2013 15:17, Kim SJ [email protected] wrote:
|
TBH, right now this is enough and we need to add the filter on the template. Going down the way to support Markdown or rich Text is possible but Let's keep it simple for now On Mon, Feb 11, 2013 at 4:06 PM, jogwen [email protected] wrote:
Michele Mattioni, PhD |
Yes, def in the "wishlist" category! |
Instead of doing this using template filters in each template where an object.description is shown, provide a model method or property to return the value ready to go into template. This will help us to not forget to striptags|urlize|linebreak description values in new templates as we add them by allowing us to put {{object.display_description}} instead of {[object.descripton|striptags|urlize|linebreaks}}. We could do one that returns striptags|urlize|linebreaks and one that does than plus truncatewords.
The text was updated successfully, but these errors were encountered: