How to print the @ character in HTML with a playback framework (scala)

I am new to Scala and play 2.1, and I am coming from the background of PHP. I cannot print the @ character in HTML. I get 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 @ character.

Thanks in advance.

+6
source share
2 answers

Double he:

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

He called the escape syntax. Other rules for the game template framework can be found here.

+17
source

You can also write HTML Entity & # 64 to print the @ symbol in your view file.

0
source

Source: https://habr.com/ru/post/955177/


All Articles