Javascript 在Jade Mixin中显示中断标记

Javascript 在Jade Mixin中显示中断标记,javascript,node.js,pug,mixins,Javascript,Node.js,Pug,Mixins,我有一个JSON文件,它在Jade Mixin中被调用以显示文本。但是,我需要在一个JSON字段中插入一个break标记,我不知道如何在Jade Mixin中实现这一点。我似乎到处都找不到相关的信息 以下是JSON文件: "features": { "employers": { "title": "For Employers", "description": "Company corporate financial wellness program i

我有一个JSON文件,它在Jade Mixin中被调用以显示文本。但是,我需要在一个JSON字段中插入一个break标记,我不知道如何在Jade Mixin中实现这一点。我似乎到处都找不到相关的信息

以下是JSON文件:

"features": {

    "employers": {
        "title": "For Employers", 
        "description": "Company corporate financial wellness program is designed to help employers lessen financial stress in the workplace, increase retirement readiness, and strengthen workplace culture.<br />Company offers a holistic approach to corporate financial wellness.",
        "featureList": [
            {
                "iconSlug": "puzzle",
                "title": "Easy Implementation",
                "description": "Company provides a robust, custom marketing and communication plan to help drive program awareness and engagement."
            },
            {
                "iconSlug": "rays",
                "title": "Ongoing Engagement",
                "description": "Get metrics around your employees’ engagement with the program and workplace impact."
            },
            {
                "iconSlug": "dollarSign",
                "title": "Affordable Pricing",
                "description": "Explore our pricing options for all company sizes, including low, per- employee rates that can be paid out of ERISA budgets."
            }
        ],
        "cta": {
            "title": "Contact our team",
            "class": "trigger-emailFormScroll"
        }
}
span.block=feature.description是我目前正在使用的。让mixin解释break标记使其不作为文本打印在页面上的最佳方法是什么


提前感谢。

这两种解决方案都可以:

span.block!=feature.description

span.block!{feature.description}

谢谢你能再解释一下吗?当然。使用“=”是HTML转义。使用“!=”不会转义。如果我的回答能解决您的问题,请将其标记为“验证”
span.block!=feature.description

span.block!{feature.description}