diff --git a/src/FormBuilder.php b/src/FormBuilder.php index 0e03984..9b2fe1c 100644 --- a/src/FormBuilder.php +++ b/src/FormBuilder.php @@ -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(''); + return $this->toHtmlString(''); } /** @@ -662,7 +662,7 @@ class FormBuilder $html[] = $this->option($display, $value, $selected); } - return $this->toHtmlString(''); + return $this->toHtmlString(''); } /** @@ -680,7 +680,7 @@ class FormBuilder $options = ['value' => $value, 'selected' => $selected]; - return $this->toHtmlString(''); + return $this->toHtmlString(''); } /** @@ -698,7 +698,7 @@ class FormBuilder $options = compact('selected'); $options['value'] = ''; - return $this->toHtmlString(''); + return $this->toHtmlString(''); } /** diff --git a/src/HtmlBuilder.php b/src/HtmlBuilder.php index b42ce53..cd504f8 100755 --- a/src/HtmlBuilder.php +++ b/src/HtmlBuilder.php @@ -53,6 +53,14 @@ class HtmlBuilder return htmlentities($value, ENT_QUOTES, 'UTF-8', false); } + /** + * Convert all applicable characters to HTML entities. + */ + public function escapeAll($value) + { + return htmlentities($value, ENT_QUOTES, 'UTF-8'); + } + /** * Convert entities to HTML characters. * @@ -387,7 +395,7 @@ class HtmlBuilder if (is_array($value)) { return $this->nestedListing($key, $type, $value); } else { - return '