Skip to content

Instantly share code, notes, and snippets.

@jstrachan
Created February 4, 2010 17:15
Show Gist options
  • Save jstrachan/294882 to your computer and use it in GitHub Desktop.
Save jstrachan/294882 to your computer and use it in GitHub Desktop.
value match {
case n: Node => out.print(n)
case s: Seq[Node] => for (n <- s) {out.print(n)}
case a => write(XmlEscape.escape(toString(a)))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment