Re: [PHP-DEV] Counterpart to htmlentities function: unhtmlentities

2002-02-28 Thread Brad Fisher
The correct proto for unhtmlentities is: /* {{{ proto string unhtmlentities(string str [, string charset]) sry about that. -Brad -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Counterpart to htmlentities function: unhtmlentities

2002-02-28 Thread Brad Fisher
Just a newer version of the unhtmlentities function. This one utilizes the same tables as htmlentities, and (hopefully) is a little more locale friendly. It also supports &#...; (decimal) &#x...; (hex) and &#X...; (hex) numeric entity formats. -Brad Index: ext/standard//basic_functions.c

[PHP-DEV] Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Brad Fisher
Just another function I have found useful.. PHP has a htmlentities function, but no unhtmlentities function to go the other direction.. (At least not that I am aware of). So, here you go. Don't think this one would perform nearly as quickly if it were done using regexps in PHP... This functio