--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Why are you using scala Xml literals here? You should use the Play template system for everything and use @Html(...) if you want that Play considers your data as safe Html. However, take care, by doing this you are likely to introduce an XSS vulnerability to your system.
--
Why are you using scala Xml literals here? You should use the Play template system for everything and use @Html(...) if you want that Play considers your data as safe Html. However, take care, by doing this you are likely to introduce an XSS vulnerability to your system.
@(customer: Customer, orders: List[Order])
<h1>Welcome @customer.name!</h1>
<ul>
@for(order <- orders) {
<li>@order.getTitle()</li>
}
</ul>
def listOrders(customer: Customer, orders: List[Order]):NodeSeq={
<h1>Welcome { customer.name }!</h1>
<ul>
{ for(order <- orders) yield { <li>{order.getTitle()}</li> }}
</ul>
}If there is a security difference between writing