php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #891 revert functions for htmlspecialchars and htmlentities
Submitted: 1998-11-02 05:58 UTC Modified: 1999-03-20 18:47 UTC
From: agarcia at at4 dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.5 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 + 20 = ?
Subscribe to this entry?

 
 [1998-11-02 05:58 UTC] agarcia at at4 dot net
Say you want to allways save plain text data in a database. And
you let the user modify the data via an html form:

You use htmlspecialchars to print the data:
<input type="text" name="test" value="&quot;quote&quot;">

When you update de database with the data the user 
sent via form, you want to save it in plain text.

So, it'll be usefull to reverthtmlspecialchars($test).


Thanks.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-03-20 18:47 UTC] sas
That is done automatically by the browser. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 11:01:31 2024 UTC