Skip to content

Commit

Permalink
Added function parameters and corrected 2 function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Printezis committed Nov 10, 2016
1 parent 6d1d46a commit f153be5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/HtmlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public function entities($value)

/**
* Convert all applicable characters to HTML entities.
*
* @param string $value
*
* @return string
*/
public function escapeAll($value)
{
Expand Down Expand Up @@ -395,7 +399,7 @@ protected function listingElement($key, $type, $value)
if (is_array($value)) {
return $this->nestedListing($key, $type, $value);
} else {
return '<li>' . $this->html->escapeAll($value) . '</li>';
return '<li>' . $this->escapeAll($value) . '</li>';
}
}

Expand Down Expand Up @@ -457,7 +461,7 @@ protected function attributeElement($key, $value)
}

if (! is_null($value)) {
return $key . '="' . $this->html->escapeAll($value) . '"';
return $key . '="' . $this->escapeAll($value) . '"';
}
}

Expand Down

0 comments on commit f153be5

Please sign in to comment.