Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 Drupal 令牌的解析问题:
[订单发货电话] [订单账单地址]
但是地址组件之间没有空格/下一行:
IE
Name SurnameStreet Streetname 1921013AX, CityCOUNTRY
我该如何解决?我不认为令牌本身是错误的..或者是吗?
那里可能有换行符。HTML 不显示换行符,因此您需要运行它nl2br(或使用换行符 Drupal 输入过滤器)。
nl2br