Converting XML entities back to normal chars
This commit is contained in:
parent
df28b2cbcc
commit
56172306d5
|
@ -14,7 +14,7 @@
|
|||
|
||||
;#AutoIt3Wrapper_Res_ProductVersion=x.x.x.x ; Broken, use #AutoIt3Wrapper_Res_Field=ProductVersion|x.x.x as workarround.
|
||||
#AutoIt3Wrapper_Res_Field=ProductVersion|Freeware
|
||||
#AutoIt3Wrapper_Res_Fileversion=1.1.1.78
|
||||
#AutoIt3Wrapper_Res_Fileversion=1.1.1.79
|
||||
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement=N ;(Y/N/P) AutoIncrement FileVersion After Aut2EXE is finished. default=N. P=Prompt, Will ask at Compilation time if you want to increase the versionnumber
|
||||
#AutoIt3Wrapper_Res_Language=1033 ;Resource Language code . german = 1031, english (U.S.) = 1033. default 2057=English (United Kingdom). For a List see http://technet.microsoft.com/en-us/library/dd346950.aspx
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ Func lookupSteamId($input)
|
|||
Local $oStatus = "1"
|
||||
Local $return[12]
|
||||
$return[0] = $oStatus
|
||||
$return[1] = $bNick[1]
|
||||
$return[1] = _xmlentitiesDecode($bNick[1])
|
||||
$return[2] = $bReason[1]
|
||||
$return[3] = $bTime[1]
|
||||
$return[4] = $pStatus[1]
|
||||
|
@ -79,7 +79,7 @@ Func lookupSteamId($input)
|
|||
Local $oStatus = "0"
|
||||
Local $return[12]
|
||||
$return[0] = $oStatus
|
||||
$return[1] = $bNick[1]
|
||||
$return[1] = _xmlentitiesDecode($bNick[1])
|
||||
$return[2] = "-"
|
||||
$return[3] = "-"
|
||||
$return[4] = $pStatus[1]
|
||||
|
@ -159,4 +159,13 @@ Func _setStatusIcon($ctrlId, $status)
|
|||
Else
|
||||
_ResourceSetImageToCtrl($ctrlId, "tick.png", $RT_RCDATA)
|
||||
EndIf
|
||||
EndFunc
|
||||
|
||||
Func _xmlentitiesDecode($string)
|
||||
Local $replace[6] = ["", '"', "&", "<", ">", "'"]
|
||||
Local $find[6] = ["", """, "&", "<", ">", "'"]
|
||||
For $iCC = 1 To UBound($replace) - 1
|
||||
$string = StringReplace($string, $find[$iCC], $replace[$iCC])
|
||||
Next
|
||||
Return $string
|
||||
EndFunc
|
Reference in New Issue