Scala XML: brace escapes in attributes Scala XML: brace escapes in attributes xml xml

Scala XML: brace escapes in attributes


Okay, figured this one out by myself. The attribute quotes are added by scala itself, so we don't have to. So, the correct way would be this (note the missing quotes around the username interpolation):

<input type="text" name="username" value={this.username} />