gin不转义html标签

  开发


在传值前将字符串转换为html类型即可:

c.HTML(http.StatusOK, "password_record.html", gin.H{
        "pwd_15": template.HTML(password),
    })

LEAVE A COMMENT

Captcha Code