public static function HamlHelpers::escape_once in Sassy 7
* Escapes HTML entities in text, but without escaping an ampersand that is * already part of an escaped entity. *
Parameters
string Haml block: * @return string the block with HTML entities escaped.
File
- phamlp/
haml/ HamlHelpers.php, line 51
Class
- HamlHelpers
- HamlHelpers class. Contains methods to make it easier to do various tasks.
Code
public static function escape_once($block) {
return htmlentities(html_entity_decode($block));
}