Merge pull request #197 from rajatsharma94/5.2

added nbsp() to generate repeated &nbsp tag
This commit is contained in:
Matt Lantz authored and GitHub committed 2016-07-12 10:16:43 -04:00
commit abec449ed8
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.
*