|Reported by:||while0pass||Owned by:||nobody|
|Severity:||Keywords:||safe semisafe filter|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
It would be good to have "semisafe" filter within django template system. It is aimed at combining acceptable SECURITY and good web-TYPOGRAPHY. It would be like "safe" filter with the exception that html-instances like " " or "—" would be processed without escaping. I mean it must escape all html tags (that is structural markup), but keep intact all that only inended to represent characters in a text. Better still, we have "semisafe" filter with the default behaviour like that described above and other behaviour controlled with options. With options we could allow some tags or tag lists for instance like <em>, <sub>, <sup> or other inline ones. It is possible to think out different levels for semisafe filter. Each level could embrace some additional tag group.