The '.' is replaced by a '_' in my id/name attribute

22 views
Skip to first unread message

Alexandre Hauser

unread,
Sep 23, 2014, 5:23:56 AM9/23/14
to scal...@googlegroups.com
Hello,

This code:
   input("type".attr := "text", id := "account.gender") 

gives me the following output:
  <input type=text id=account_gender>

Any way to avoid the replacement of the '.' ?

Thanks,
Alexandre

Haoyi Li

unread,
Oct 13, 2014, 3:08:28 PM10/13/14
to Alexandre Hauser, scal...@googlegroups.com
Sorry for the late reply. I'm not seeing it:

Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scalatags.Text.all._
import scalatags.Text.all._

scala>  input("type".attr := "text", id := "account.gender") .toString
res2: String = <input type="text" id="account.gender" />


--
You received this message because you are subscribed to the Google Groups "Scalatags" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalatags+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages