Is there a use case for,{} - string interpolation? unescaped? Given that it is risky to use?
I have checked the following links:
https://pugjs.org/language/interpolation.html#string-interpolation-unescaped
Using,{ } and #{ } interpolation in a jade template (exclamation-object, hash-object)
https://www.reddit.com/r/node/comments/8kcz7s/can_someone_explain_the_difference_between/
Simply put from the doc: never trust user input
so answering your question use !{}
only when it's not user input or some code you don't trust
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.