Node.js express在使用a时意外解释JADE(href)

Node.js express在使用a时意外解释JADE(href),node.js,express,pug,Node.js,Express,Pug,在一个express应用程序中,我有一个像这样的Jade文件 each tweet, index in tweetData ///some variable declarations a( class="fancybox" rel="group" href=tweet.media_url tweetLink=tweetLink data-widgetIndex=widgetIndex title="default text" profile_image_url=tweet.profile

在一个express应用程序中,我有一个像这样的Jade文件

each tweet, index in tweetData
///some variable declarations
    a( class="fancybox" rel="group" href=tweet.media_url tweetLink=tweetLink data-widgetIndex=widgetIndex title="default text" profile_image_url=tweet.profile_image_url)
        img(src=tweet.media_url alt="" width="150" height="150")
        div(id=widgetIndex, style="display:none")
            div(style="min-height:200px")  Hello world
                div(style="float:left;width:52px;height:100%; display:inline;margin-right:5px")
                    a(href="#")  //<---- this causes trouble!!!!!
                        img(src=tweet.profile_image_url, style="width:52px;height:48px;background:#bfb;")
                    div(style="height:48px;background:#bfb;") BALLS
每条tweet,在tweetData中建立索引
///一些变量声明
a(class=“fancybox”rel=“group”href=tweet.media\u url tweetLink=tweetLink数据widgetIndex=widgetIndex title=“默认文本”配置文件\u图像\u url=tweet.profile\u图像\u url)
img(src=tweet.media_url alt=”“width=“150”height=“150”)
div(id=widgetIndex,style=“display:none”)
div(style=“最小高度:200px”)Hello world
div(style=“float:left;width:52px;height:100%;display:inline;margin right:5px”)

a(href=“#”)/我认为根本问题在于我在锚定标记中有一个锚定标记。我之所以设置这个结构,是因为我实际上使用jquery获取内部锚定标记并将其显示在别处(在一个lightbox中)。如果我将内部锚定标记设为外部锚定标记的近亲(而非后代),则外部锚定标记将解释翡翠。

。哎呀。我想这是因为我嵌套了标签。
<a class="fancybox" profile_image_url="http://pbs.twimg.com/profile_images/378800000365890826/c04bf726e47f3eda2116b5249e623a43_normal.jpeg" title="default text" data-widgetindex="widget0" tweetlink="http://twitter.com/Sjaakvdvoort/status/undefined" href="http://pbs.twimg.com/media/BXM0sjpCUAAEHOr.png" rel="group">
    <img width="150" height="150" alt="" src="http://pbs.twimg.com/media/BXM0sjpCUAAEHOr.png"></img>
</a>
<div id="widget0" style="display:none">
    <a class="fancybox" profile_image_url="http://pbs.twimg.com/profile_images/378800000365890826/c04bf726e47f3eda2116b5249e623a43_normal.jpeg" title="default text" data-widgetindex="widget0" tweetlink="http://twitter.com/Sjaakvdvoort/status/undefined" href="http://pbs.twimg.com/media/BXM0sjpCUAAEHOr.png" rel="group"></a>
    <div style="min-height:200px">
        <a class="fancybox" profile_image_url="http://pbs.twimg.com/profile_images/378800000365890826/c04bf726e47f3eda2116b5249e623a43_normal.jpeg" title="default text" data-widgetindex="widget0" tweetlink="http://twitter.com/Sjaakvdvoort/status/undefined" href="http://pbs.twimg.com/media/BXM0sjpCUAAEHOr.png" rel="group"></a>
        <div style="float:left;width:52px;height:100%; display:inline;margin-right:5px">
            <a class="fancybox" profile_image_url="http://pbs.twimg.com/profile_images/378800000365890826/c04bf726e47f3eda2116b5249e623a43_normal.jpeg" title="default text" data-widgetindex="widget0" tweetlink="http://twitter.com/Sjaakvdvoort/status/undefined" href="http://pbs.twimg.com/media/BXM0sjpCUAAEHOr.png" rel="group"></a>
            <a href="#">...</a>
            <div style="height:48px;background:#bfb;">
                BALLS
            </div>
        </div>
    </div>
</div>