htmlspecialchars Questions
4
Solved
I have strings like:
Avery® Laser & Inkjet Self-Adhesive
I need to convert them to
Avery Laser & Inkjet Self-Adhesive.
I.e. remove special characters and convert html special c...
Appointee asked 18/2, 2010 at 9:22
4
Solved
I am using htmlspecialchars() function to prevent XSS attacks. I have doubt regarding what is the better method to store the data in database from following.
Method 1 : Store the user input values...
Madeline asked 1/3, 2012 at 8:28
1
Solved
In the htmlspecialchars function, if you set the ENT_SUBSTITUTE flag, it is supposed to replace some invalid characters.
What characters are replaced? And what is the mapping between the invalid ...
Barrister asked 20/11, 2011 at 23:39
4
Solved
My users are allowed to insert anything into my database.
So using a whitelist / blacklist of characters is not an option.
I'm not worried (covered it) about the database end (SQL injection), but...
Wohlert asked 12/11, 2011 at 18:28
1
Solved
A web service that I am accessing send the following response...
<strong>result</strong>
How can I strip the string of these encoded tags?
Swastika asked 11/11, 2011 at 3:22
1
Solved
What are the special reserved character entities in HTML and in XML?
The information that I have says:
HTML:
& (replace with &)
< (replace with &lt;)
> (replace with &...
Sergei asked 30/8, 2011 at 19:50
2
Solved
so I have a site where users can register using a username of their choosing and can submit large blocks of text and add comments. Currently, to avert XSS, I use strip_tags on the data on input to ...
Adlai asked 15/8, 2011 at 0:1
2
Solved
I send this with AJAX POST:
<li><ul class "zone zCentral ui-sortable"><li><ul class="region rCol3 ui-sortable"><li class="" style=""><div><span class="tc tc_...
Prunella asked 7/1, 2011 at 11:47
2
Solved
There is a charset parameter in htmlspecialchars but the decode version does not have it. In comparison to the similar htmlentities, the encode and decode functions both have the charset parameter....
Evaporation asked 17/5, 2010 at 7:55
1
Solved
How can I do this on Ruby?
puts some_method("ò")
# => "&ograve;"
In other words convert an accented character like ò to his HTML version: &ograve;
I tried like this:
# coding: utf-8...
Excepting asked 30/10, 2009 at 13:31
7
Solved
why would this
$trader_details = array_walk($trader_details, 'htmlspecialchars');
give this error?
Severity: Warning
Message: htmlspecialchars() expects parameter 2 to be long, string given
a...
Bevy asked 22/8, 2009 at 21:15
3
Solved
When outputting user input, do you only use htmlspecialchars() or are there are functions/actions/methods you also run? I'm looking for something that will also deal with XSS.
I'm wondering if I s...
Parameter asked 8/2, 2009 at 21:25
© 2022 - 2024 — McMap. All rights reserved.