Browse Source

Updated docs

Chris How 12 years ago
parent
commit
87c588c610
1 changed files with 8 additions and 0 deletions
  1. 8 0
      laravel/documentation/views/forms.md

+ 8 - 0
laravel/documentation/views/forms.md

@@ -83,6 +83,14 @@ Laravel provides an easy method of protecting your application from cross-site r
 
 
 	echo Form::label('email', 'E-Mail Address', array('class' => 'awesome'));
 	echo Form::label('email', 'E-Mail Address', array('class' => 'awesome'));
 
 
+#### Turning off HTML escaping of label contents:
+
+	echo Form::label('confirm', 'Are you <strong>sure</strong> you want to proceed?', null, false);
+	
+You can pass ```false``` as the optional fourth argument to disable automatic HTML escaping of the label content.
+
+
+
 > **Note:** After creating a label, any form element you create with a name matching the label name will automatically receive an ID matching the label name as well.
 > **Note:** After creating a label, any form element you create with a name matching the label name will automatically receive an ID matching the label name as well.
 
 
 <a name="text"></a>
 <a name="text"></a>