-
robin_:
hi - does anyone know how to stop scala from turning a " into an " when it's included in an XML expression?
-
robin_:
e.g. val a = <p>I include "quotes"</p>
-
robin_:
turns into <p>I include "quotes"</p>
-
robin_:
and what I want is the literal <p>I include "quotes"</p>
-
dobblego:
scala> xml.Unparsed("hello\" there")
-
dobblego:
res8: scala.xml.Unparsed = hello" there
-
robin_:
ah - nice - thank you very much
-
dobblego:
scala> <p>{ xml.Unparsed("I include \"quotes\"") }</p>
-
dobblego:
res9: scala.xml.Elem = <p>I include "quotes"</p>
-
robin_:
thanks for your help
-
dobblego:
np
blog comments powered by