Skip to content

Commit

Permalink
Merge pull request #197 from rajatsharma94/5.2
Browse files Browse the repository at this point in the history
added nbsp() to generate repeated &nbsp tag
  • Loading branch information
mlantz committed Jul 12, 2016
2 parents 9f534cb + eb132ae commit abec449
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/HtmlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,18 @@ public function email($email)
return str_replace('@', '@', $this->obfuscate($email));
}

/**
* Generates non-breaking space entities based on number supplied.
*
* @param int $num
*
* @return string
*/
public function nbsp($num = 1)
{
return str_repeat(' ', $num);
}

/**
* Generate an ordered list of items.
*
Expand Down

0 comments on commit abec449

Please sign in to comment.