trim html entities from string variable in nsis
Question
I am trying to find out the way to get rid of the


symbols from string.
I have tried Trim and CharStrip functions, but with no success.
Code snipp:
${CharStrip} "
" "$R4" "$R3"
!insertmacro WriteXMLPathAttr "/configuration/FTGAuth" "value" "$R3"
WriteXMLPathAttr macro:
${xml::RootElement} $R1 $R0
!ifdef DEBUGMODE_NSISDBG
nsisdbg::sendtolog /NOUNLOAD " root : $R1"
!endif
${xml::GotoPath} "${XML_PATH}" $R1
!ifdef DEBUGMODE_NSISDBG
nsisdbg::sendtolog /NOUNLOAD "GotoPath ${XML_PATH} result: $R1 "
!endif
${xml::SetAttribute} "${XML_PARAM}" "${XML_VARIABLE}" $R1
!ifdef DEBUGMODE_NSISDBG
nsisdbg::sendtolog /NOUNLOAD "SetAttribute result $R1 : ${XML_VARIABLE} "
!endif
Thanks for any help!
:)
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow