문제

I am new to Scala and play 2.1 and I come from a PHP background. I am not able to print the @ symbol in HTML. I am getting the following error:

not found: value Hotmail

Here is my code:

myname<label>@Hotmail.com</label>

Please let me know how I can print the @symbol.

Thanks in advance.

도움이 되었습니까?

해결책

Double it:

myname<label>@@Hotmail.com</label>

It's called escape syntax. Other rules for play template framework can be found here

다른 팁

You can also write HTML Entity code &#64 for printing @ symbol in your view file.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top