?
Solved

what is htmlspecialchars  <input type="hidden" id="x_host_ip" name="x_host_ip" value="<?php echo htmlspecialchars(@$x_host_ip); ?>">

Posted on 2006-10-23
1
Medium Priority
?
250 Views
Last Modified: 2006-11-18
<input type="hidden" id="x_host_ip" name="x_host_ip" value="<?php echo htmlspecialchars(@$x_host_ip); ?>">


what is htmlspecialchars(@$x_host_ip);
0
Comment
Question by:teera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 49

Accepted Solution

by:
Roonaan earned 1400 total points
ID: 17788036
It transforms (among others) < to &lt; and > to &gt; such that people cannot inject html into your pages.

-r-
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question