using .text() instead of .html() to prevent xss attacks
using constants instead of variables and removed token and comment from t9n
using django's slice instead of truncatechars