Problem when samigo parse the numeric responses and we have another bracket at the html of the question.

Description

When we include an image that contains brackets on the tags (as in the title or the alt tag). When samigo parses the texto to get the numeric response there is an error, because the tags are also parsed.

This happens when we have an code like this:
{120}
<br />
<img align="absmiddle" title="\f[\sum{3pi}\f] " style="display: block; margin: 0pt auto; background-color: rgb(255, 255, 221); cursor: default;" src="http://www.codecogs.com/png.latex?%5Csum%7B3%5Cpi%7D" alt="\f[\sum{3pi}\f] " />
{1}

We get this:

Answer Key: 120, 3pi, 3pi, 1

Activity

Show:

Hui Tsao September 1, 2010 at 11:13 AM

Jasmine,

Please also do regression tests on Fill In The Blank and Numeric question types. Thanks.

Hui Tsao September 1, 2010 at 11:12 AM

commit -m "SAM-902" /opt/sakai_trunk/sam/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/ItemAddListener.java /opt/sakai_trunk/sam/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/delivery/DeliveryActionListener.java
Sending opt/sakai_trunk/sam/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/ItemAddListener.java
Sending opt/sakai_trunk/sam/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/delivery/DeliveryActionListener.java
Transmitting file data ...
Committed revision 82046.

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created June 8, 2010 at 3:34 AM
Updated April 17, 2018 at 8:38 AM
Resolved September 1, 2010 at 11:13 AM