diff --git a/src/HtmlBuilder.php b/src/HtmlBuilder.php index 037e873..7306fc4 100755 --- a/src/HtmlBuilder.php +++ b/src/HtmlBuilder.php @@ -277,6 +277,18 @@ class HtmlBuilder 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. *