PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_Flexy » Bug #5752

htmlentities modifier

Details

Request #5752htmlentities modifier
Submitted2005-10-22 02:34 UTC
Frompear at bicou dot com
Assignedalan_k
StatusClosed
PackageHTML_Template_Flexy
PHP VersionIrrelevant
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>\';';