How to print @ symbol in HTML with play framework (scala)
Asked Answered
E

2

10

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.

Ermentrude answered 3/10, 2013 at 11:6 Comment(0)
H
24

Double it:

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

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

Hypogeum answered 3/10, 2013 at 11:14 Comment(0)
M
0

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

Maggard answered 4/10, 2013 at 4:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.