Added function parameters and corrected 2 function calls
This commit is contained in:
1 parent
6d1d46a258
commit
f153be5313
1 file changed
+6
-2
+6
-2
@@ -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) . '"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user