使用@以 Scala 形式指定电子邮件

Using @ to specify email in Scala form

我的 Play Scala 视图表单有下一个命令:

<p>Please, contact support at: <a href="mailto:jzsupp@comp.usa">Joe Doe</a> </p>

但我收到错误:

not found: value comp 

是否有办法转义 @ 符号以仅用于电子邮件地址?

感谢

@ 是一种特殊语法,因此您需要通过添加另一个 @

来转义它
<p>Please, contact support at: <a href="mailto:jzsupp@@comp.usa">Joe Doe</a> </p>

供参考:Syntax: the magic ‘@’ character