在html类型的字段中,有一个属性可用,我们可以在其中传递 True / False 。
body_html = fields.Html('Body', translate=True, sanitize=False, help="Rich-text/HTML version of the message (placeholders may be used here)")
body_html = fields.Html('Body', translate=True, sanitize=True, help="Rich-text/HTML version of the message (placeholders may be used here)")
如果我们设置为True / False,那么我们会得到相同的结果。
如果我们在此字段中设置True / False有什么区别?