Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.13

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 OS:
Roadmaps: (Not assigned)    
Subscription  


 [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>\';';

Comments

 [2005-10-25 02:22 UTC] alan_k
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Standard Compiler is depreciated - all changes will only be added to the Flexy Compiler.