Html escaping is now optional for labels
This commit is contained in:
1 parent
02c75dff24
commit
d65deb4e77
2 files changed
+9
-2
No files matched your search
@@ -58,9 +58,11 @@ class FormBuilderTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
$form1 = $this->formBuilder->label('foo', 'Foobar');
|
||||
$form2 = $this->formBuilder->label('foo', 'Foobar', ['class' => 'control-label']);
|
||||
$form3 = $this->formBuilder->label('foo', 'Foobar <i>bar</i>', null, false);
|
||||
|
||||
$this->assertEquals('<label for="foo">Foobar</label>', $form1);
|
||||
$this->assertEquals('<label for="foo" class="control-label">Foobar</label>', $form2);
|
||||
$this->assertEquals('<label for="foo">Foobar <i>bar</i></label>', $form3);
|
||||
}
|
||||
|
||||
public function testFormInput()
|
||||
|
||||
Reference in new issue
Block a user