erifash Posted June 22, 2005 Share Posted June 22, 2005 (edited) I have created an html encoder that makes html semi-secure (not really, just hex values). It is based off w0uter's _EncodeUrl() and a script I found on Dynamic Drive (http://dynamicdrive.com). Here is the func: Func _HTMLEncode($s_html) Local $a_htm = StringSplit($s_html, ""), $s_ht = '', $i_i For $i_i = 1 to $a_htm[0] $s_ht = $s_ht & '%' & Hex(Asc($a_htm[$i_i]), 2) Next Return '<script>' & @CRLF & 'document.write(unescape("' & $s_ht & '"));' & @CRLF & '</script>' EndFunc ;===>_HTMLEncode() Just look what it does to the AutoIt homepage source code! BTW: Put the result into a *.htm file. Edited June 22, 2005 by erifash My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now