Sha256: 2d27958f3938482934211e4d1e6b43b71462b52236b9db147c3d11abf5c45074
Contents?: true
Size: 757 Bytes
Versions: 10
Compression:
Stored size: 757 Bytes
Contents
--FILE-- <?php $env = new MtHaml\Environment('php', array('enable_escaper' => true)); echo $env->compileString($parts['HAML'], "$file.haml"); --HAML-- %html %body{:some=> "attr& #{$foo}"} %p{"#{$foo}" => "foo"}(z=$x) = "escaped" &= "escaped" != "not escaped" --EXPECT-- <html> <body <?php echo MtHaml\Runtime::renderAttributes(array(array('some', ('attr& ' . $foo))), 'html5', 'UTF-8'); ?>> <p <?php echo MtHaml\Runtime::renderAttributes(array(array($foo, 'foo'), array('z', $x)), 'html5', 'UTF-8'); ?>> <?php echo htmlspecialchars("escaped",ENT_QUOTES,'UTF-8'); ?> <?php echo htmlspecialchars("escaped",ENT_QUOTES,'UTF-8'); ?> <?php echo "not escaped"; ?> </p> </body> </html>
Version data entries
10 entries across 10 versions & 1 rubygems