Home » HTML » HTML_Template_Flexy » Bug #5752
htmlentities modifier
Details
| Request #5752 | htmlentities modifier |
|---|---|
| Submitted | 2005-10-22 02:34 UTC |
| From | pear at bicou dot com |
| Assigned | alan_k |
| Status | Closed |
| Package | HTML_Template_Flexy |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-10-22 02:34 UTC] pear at bicou dot com
Description:
------------
A little addition to output htmlentities strings.
Test script:
---------------
--- Flexy.bak/Compiler/Flexy.php 2005-10-22 04:29:34.051125000 +0200
+++ Flexy/Compiler/Flexy.php 2005-10-22 04:28:07.098000000 +0200
@@ -516,6 +516,10 @@
$prefix = 'echo urlencode(';
$suffix = ')';
break;
+ case 'e':
+ $prefix = 'echo htmlentities(';
+ $suffix = ')';
+ break;
case 'r':
$prefix = 'echo \'<pre>\'; echo htmlspecialchars(print_r(';
$suffix = ',true)); echo \'</pre>\';';
--- Flexy.bak/Compiler/Standard.php 2005-08-28 22:57:40.343750000 +0200
+++ Flexy/Compiler/Standard.php 2005-10-22 04:09:20.801125000 +0200
@@ -470,6 +470,10 @@
$prefix = 'echo urlencode(';
$suffix = ')';
break;
+ case 'e':
+ $prefix = 'echo htmlentities(';
+ $suffix = ')';
+ break;
case 'r':
$prefix = 'echo \'<pre>\'; echo htmlspecialchars(print_r(';
$suffix = ',true)); echo \'</pre>\';';