AttrBindParam: double quoting of string values
When I do this:
I get an attribute value with extra double quotes, like this:
Whereas when I do this:
I get the output I'd expect, with a single set of quotes:
Trond on the maling list said this was probably something to do with implicit conversions to/from JsExps. I'm not sure how these work yet - here is my list of imports in case you need them.
bind("prefix", ..., AttrBindParam("suffix", "myid", "id"))
I get an attribute value with extra double quotes, like this:
<div id=""myid""> ... </div>
Whereas when I do this:
bind("prefix", ..., AttrBindParam("suffix", Text("myid"), "id"))
I get the output I'd expect, with a single set of quotes:
<div id="myid"> ... </div>
Trond on the maling list said this was probably something to do with implicit conversions to/from JsExps. I'm not sure how these work yet - here is my list of imports in case you need them.
import scala.xml._
import net.liftweb.common._
import net.liftweb.http._
import net.liftweb.mapper._
import net.liftweb.util._
import net.liftweb.http.js.JsCmd
import net.liftweb.http.js.jquery.JqJsCmds._
import net.liftweb.http.js.JsCmds._
import net.liftweb.http.js.JE._
import Helpers._
import SHtml._
import S._
Leave a comment
(In revision:44aaa928e004bd33718427b0bdc28e1a707ffff4) Closes #501. Add a String option for AttrBindParam
Branch: master
Branch: master