我应该在django模板中使用哪个过滤器,以便以输入方式显示文本,包括所有空格和对齐方式(是否为Left,Right等),例如:我想添加一些有关标题的描述我希望它采用这种形式:
"My my, 2018 is going by so quickly!
Maybe it went by fast because we were too busy loading up on all kinds of yummy food at all the new restaurants that opened up.
As usual, we took the liberty of curating a list of eateries that we think you should not keep waiting.
So, without much further adieu, there’s your Culinary Bucket List For The Rest Of 2018".
当前,我的标题描述设置为以下格式:{{value:Linebreaks}}
答案 0 :(得分:-1)
使用内置的{{value |安全}}