How to escape dollar sign ($) in emmet?

自闭症网瘾萝莉.ら 提交于 2019-12-12 03:47:37

问题


As emmet use dollar sign ($) for numbering like:

p#p${$}*3  //outputs <p id="p1">1</p><p id="p2">2</p><p id="p3">3</p>

it has its significant usefulness.

But, in case of currency, I am having strange problem with it.

p{$10} //outputs <p>${14}</p> expected <p>$10</p>

What can I do for this type of scenario?

Note: To be precise, I am using https://github.com/Krizz/jquery.emmet as jquery emmet plugin.


回答1:


Could you try and use &#36;? This should escape it properly.

Source: http://www.fileformat.info/info/unicode/char/0024/index.htm




回答2:


You can use \ to escape $ symbol:

p#p${\$}*3



来源:https://stackoverflow.com/questions/39973270/how-to-escape-dollar-sign-in-emmet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!