mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
encode checkbox and radio list by default.
This commit is contained in:
@ -305,7 +305,7 @@ EOD;
|
||||
$this->assertEqualsWithoutLE($expected, Html::checkboxList('test', array('value2'), $this->getDataItems()));
|
||||
|
||||
$expected = <<<EOD
|
||||
<label><input type="checkbox" name="test[]" value="value1<>"> text1<></label>
|
||||
<label><input type="checkbox" name="test[]" value="value1<>"> text1<></label>
|
||||
<label><input type="checkbox" name="test[]" value="value 2"> text 2</label>
|
||||
EOD;
|
||||
$this->assertEqualsWithoutLE($expected, Html::checkboxList('test', array('value2'), $this->getDataItems2()));
|
||||
@ -341,7 +341,7 @@ EOD;
|
||||
$this->assertEqualsWithoutLE($expected, Html::radioList('test', array('value2'), $this->getDataItems()));
|
||||
|
||||
$expected = <<<EOD
|
||||
<label><input type="radio" name="test" value="value1<>"> text1<></label>
|
||||
<label><input type="radio" name="test" value="value1<>"> text1<></label>
|
||||
<label><input type="radio" name="test" value="value 2"> text 2</label>
|
||||
EOD;
|
||||
$this->assertEqualsWithoutLE($expected, Html::radioList('test', array('value2'), $this->getDataItems2()));
|
||||
|
Reference in New Issue
Block a user