Pug 文件不呈现我的 iframe,而是在变量中,呈现 false

Pug file not rendering my iframe which is in a variable instead, rendering false

在我的控制器上,我正在发送一个包含 iframe 的变量 embed,但它正在呈现 false,我做错了什么?

exports.getUserBySlug = async (req, res, next) => {

  const user = await User.findOne({ slug: req.params.slug })
  let embed = {}
  if (!user) return next();

  try {
    const response = await axios.get(`https://soundcloud.com/oembed?format=json&url=${user.musicLink}`)
    embed = response.data
  } catch (e) {
    console.error(e)
  }

  res.render('user', {
    user,
    title: user.name,
    embed: embed.html,
  });
};

哈巴狗:

extends layout

block content
  .inner
    .cf
      .w-30.fl.ba
        img.br-100.h5.w5.center.db.mt4(src=`/uploads/${user.photo}`)
        p.tc #{user.name}
          p.tc #{user.genres}
      .w-70.fl.bg-light-blue
        user.musicLink
        p=! embed

然后在呈现的文件上它只呈现 false,我怎样才能使实际的 iframe 呈现?

模板上的错别字,p=! embed 应该是 p!=embed

Unescaped buffered code starts with !=. It evaluates the JavaScript expression and outputs the result. Unescaped buffered code does not perform any escaping, so is unsafe for user input