Raised This Month: $ Target: $400
 0% 

htmlspecialchars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WhiteShadow92
New Member
Join Date: Jun 2010
Old 07-16-2010 , 18:05   htmlspecialchars
Reply With Quote #1

Hello!
I have a question. It is possible to use htmspecialchars function in amxmodx scripting? I am interested because i use sockets to send data to a php file and i want to convert any symbol like "! @ # $ % etc." to html codes like "  • &raqo; etc." because PHP don't support to get the "#" symbol.

Thnak's!
WhiteShadow92 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-16-2010 , 18:11   Re: htmlspecialchars
Reply With Quote #2

You don't encode them like that you encode them with hex. So, for the space space character it is %20.

It's called encoding the special characters. Here is a stock function by Joropito. Note: The stock posted by Exolent does not currently work.
__________________
fysiks is offline
WhiteShadow92
New Member
Join Date: Jun 2010
Old 07-17-2010 , 04:45   Re: htmlspecialchars
Reply With Quote #3

Aha. So, another function to do this doesn't exist?

L.E. I have used the stock function made by Joropito, and it works.

Thank's a lot!

--- Sorry for my bad english ---

Last edited by WhiteShadow92; 07-17-2010 at 05:16.
WhiteShadow92 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode