How about this
At line 833 of includes/classes/pad_sba_sequenced_dropdowns.php
change:
Code:
$out.='"_' . $oval['id'] . '"' . ': "' . zen_output_string_protected($oval['text']) . '", ';
to:
Code:
$out.='"_' . $oval['id'] . '"' . ': "';
// $out.=zen_output_string_protected($oval['text']);
$out.=zen_output_string($oval['text'],
array(
'"' => '"',
'\'' => ''',
'<' => '<',
'>' => '>',
' & ' => ' & ',
'& ' => '& '
)
);
$out.='", ';
So that area of code would go from:
Code:
foreach ($attr['ovals'] as $oval) {
$out.='"_' . $oval['id'] . '"' . ': "' . zen_output_string_protected($oval['text']) . '", ';[/TD]
}
To:
Code:
foreach ($attr['ovals'] as $oval) {
$out.='"_' . $oval['id'] . '"' . ': "';
// $out.=zen_output_string_protected($oval['text']);
$out.=zen_output_string($oval['text'],
array(
'"' => '"',
'\'' => ''',
'<' => '<',
'>' => '>',
' & ' => ' & ',
'& ' => '& '
)
);
$out.='", ';
}
This is another way to accomplish the "interim" variable perspective and is a little cleaner to some extent but also not as easy to read.
There is something that was not right about how it was put together in the previous method/attempts and it currently still displays this html code which is causing the problem:
Code:
var txt3 = {"_38": "10ml ", "_<": "<", "_40": "50ml (+&pound;15.00) ", "_<": "<"};
It is this result that we are trying to modify. The &pound; is the part that is the problem because of basically dual sanitization at least in the second dropdown. Still may need to do something for the first dropdown to resolve this.
It should instead look like:
Code:
var txt3 = {"_38": "10ml ", "_<": "<", "_40": "50ml (+£15.00) ", "_<": "<"};
Bookmarks