added nbsp() to generate repeated &nbsp tag

This commit is contained in:
rajatsharma94 committed 2016-07-11 11:47:54 +05:30
1 parent 9f534cb45b
commit eb132aed5c
1 file changed
+12
+12
View File
@@ -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.
*