Scala xhtml attribute breaks because of a question mark

Posted by portoalet on Stack Overflow See other posts from Stack Overflow or by portoalet
Published on 2010-05-22T15:20:10Z Indexed on 2010/05/22 15:31 UTC
Read the original article Hit count: 275

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about XHTML

Related posts about scala