Advertisement
cc11rocks

Untitled

Oct 7th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Hello all. I'm passing a String as a variable to a .scala.html page. If I call the string as "@string", it literally puts the string in the HTML page. How do I render it in the page with regards to HTML instructions (if the string contains "<p>", then it regards "<p>" as a new paragraph, rather than LITERALLY printing "<p>")?
  2. In my HTML page : @(storeID: Int, employeeID: Int, name: String, ab: String) ... <i><u>Announcement Board</i></u>
  3. @ab
  4. String "ab" may contain HTML code, which I which to render as HTML...
  5. I'm running Play 2.0.4 if it matters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement