AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   htmlspecialchars (https://forums.alliedmods.net/showthread.php?t=132604)

WhiteShadow92 07-16-2010 18:05

htmlspecialchars
 
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!

fysiks 07-16-2010 18:11

Re: htmlspecialchars
 
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.

WhiteShadow92 07-17-2010 04:45

Re: htmlspecialchars
 
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 ---


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

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