Scala xhtml attribute breaks because of a question mark
- by portoalet
I had a problem with
<iframe id="iframe1" src='http://stockcharts.com/h-sc/ui?s=MT&p=D&yr=2&mn=0&dy=0&id=p43321191731' width="300px" height="300px"></iframe>
in Lift web framework (Scala) version
Message: java.util.NoSuchElementException
scala.RandomAccessSeq$$anon$13.next(RandomAccessSeq.scala:165)
scala.xml.parsing.MarkupParser$class.normalizeAttributeValue(MarkupParser.scala:1191)
It turned out the question mark ? in the iframe src attribute caused this.
What can I do to fix this quickly?