[英]When to use string interpolation, unescaped !{} in pug?
是否有用於,{} - 字符串插值的用例? 逃脫? 鑒於使用有風險?
我檢查了以下鏈接:
https://pugjs.org/language/interpolation.html#string-interpolation-unescaped
https://www.reddit.com/r/node/comments/8kcz7s/can_someone_explain_the_difference_between/
從文檔中簡單地說: never trust user input
,所以回答您的問題時使用!{}
僅當它不是用戶輸入或您不信任的某些代碼時
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.