Added function parameters and corrected 2 function calls

This commit is contained in:
Stefan Printezis committed 2016-11-11 00:05:46 +01:00
1 parent 6d1d46a258
commit f153be5313
1 file changed
+6 -2
+6 -2
View File
@@ -55,6 +55,10 @@ class HtmlBuilder
/** /**
* Convert all applicable characters to HTML entities. * Convert all applicable characters to HTML entities.
*
* @param string $value
*
* @return string
*/ */
public function escapeAll($value) public function escapeAll($value)
{ {
@@ -395,7 +399,7 @@ class HtmlBuilder
if (is_array($value)) { if (is_array($value)) {
return $this->nestedListing($key, $type, $value); return $this->nestedListing($key, $type, $value);
} else { } else {
return '<li>' . $this->html->escapeAll($value) . '</li>'; return '<li>' . $this->escapeAll($value) . '</li>';
} }
} }
@@ -457,7 +461,7 @@ class HtmlBuilder
} }
if (! is_null($value)) { if (! is_null($value)) {
return $key . '="' . $this->html->escapeAll($value) . '"'; return $key . '="' . $this->escapeAll($value) . '"';
} }
} }