Closed dalejbarr closed 5 years ago
This code fails:
mcq(c(answer = "rep(c('A', 'B'), c(1, 2))", "alt2", "alt3"))
The resulting HTML looks like this:
<select class="solveme" data-answer="["rep(c(" A', 'B'), c(1, 2))"]'> <option></option> <option>rep(c(‘A’, ‘B’), c(1, 2))</option> <option>alt2</option> <option>alt3</option> </select>
might be a problem when answer is converted to JSONlite?
This is resolved in release 0.9.0.
This code fails:
The resulting HTML looks like this:
might be a problem when answer is converted to JSONlite?