Removing the double escape
This commit is contained in:
1 parent
6ac052cbe5
commit
28df2ea235
4 files changed
+12
-24
No files matched your search
+5
-5
@@ -485,7 +485,7 @@ class FormBuilder
|
||||
// the element. Then we'll create the final textarea elements HTML for us.
|
||||
$options = $this->html->attributes($options);
|
||||
|
||||
return $this->toHtmlString('<textarea' . $options . '>' . $this->html->escapeAll($value). '</textarea>');
|
||||
return $this->toHtmlString('<textarea' . $options . '>' . $value. '</textarea>');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -662,7 +662,7 @@ class FormBuilder
|
||||
$html[] = $this->option($display, $value, $selected);
|
||||
}
|
||||
|
||||
return $this->toHtmlString('<optgroup label="' . $this->html->escapeAll($label) . '">' . implode('', $html) . '</optgroup>');
|
||||
return $this->toHtmlString('<optgroup label="' . e($label) . '">' . implode('', $html) . '</optgroup>');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -680,7 +680,7 @@ class FormBuilder
|
||||
|
||||
$options = ['value' => $value, 'selected' => $selected];
|
||||
|
||||
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . $this->html->escapeAll($display) . '</option>');
|
||||
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . e($display) . '</option>');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -694,7 +694,7 @@ class FormBuilder
|
||||
protected function placeholderOption($display, $selected)
|
||||
{
|
||||
$selected = $this->getSelectedValue(null, $selected);
|
||||
|
||||
|
||||
$options = [
|
||||
'selected' => $selected,
|
||||
'disabled' => 'disabled',
|
||||
@@ -702,7 +702,7 @@ class FormBuilder
|
||||
'value' => ''
|
||||
];
|
||||
|
||||
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . $this->html->escapeAll($display) . '</option>');
|
||||
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . e($display) . '</option>');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user