What does “|” sign mean in a Django template?
问题 I often see something like that: something.property|escape something is an object, property is it's string property. escape - i don't know :) What does this mean? And what min python version it is used in? EDIT: The question was asked wrongly, it said "What does | mean in Python", so the bitwise or answers are correct, but irrelevant, please do not downvote them 回答1: obj.property|escape is the way to apply the escape filter in a template, which will HTML escape the string representation of