我在HTML标记中使用#[]
语法时遇到了几个问题。
这是我遇到的两个问题:
使用撇号
p.
#[strong John's strong text] is really strong.
错误信息:
The end of the string was reached with no closing bracket found.]
使用多行
p.
#[strong This strong text is really really long. This strong
text is really really long. This strong text is really really
long.]
错误信息:
The end of the string was reached with no closing bracket found.]
我已经尝试通过添加
\
来解决这两个问题,但是没有运气。 最佳答案
您可以将'替换为
'
摆脱错误。所以回答1.你可以做
#[strong John's strong text] and it should work as expected.
关于node.js - Jade模板HTML括号撇号和多行问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26861240/