public static function HamlHelpers::preserve in Sassy 7
* Converts newlines in the block to HTML entities. *
Parameters
string Haml block: * @return string the block with newlines converted to HTML entities
File
- phamlp/
haml/ HamlHelpers.php, line 173
Class
- HamlHelpers
- HamlHelpers class. Contains methods to make it easier to do various tasks.
Code
public static function preserve($block) {
return str_replace("\n", '
', $block);
}