Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » PHP issue
Re: PHP issue [message #439892 is a reply to message #438943] Mon, 22 November 2010 09:56 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
htmlspecialchars converts characters to their HTML equivilents, so outputting them to a HTML document like that should render them correctly without needing to make any further modifications to the values.


For example,

echo "<p>Thing &amp; another thing</p>";


Would appear something like this;

Thing & another thing


The idea of htmlspecialchars is to convert characters to HTML safe equivilents whilst ensuring they still output correctly. If they are outputting as &amp;, &gt; etc then you are either calling htmlspecialchars multiple times or are not checking whether magic quotes are enabled before calling htmlspecialchars.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Mon, 22 November 2010 09:57]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GameSpy
Next Topic: Generals... AGAIN
Goto Forum:
  


Current Time: Wed Jan 15 11:46:00 MST 2025

Total time taken to generate the page: 0.01186 seconds