X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fifmsxmldocument.h;h=ae555a1fad52ec06663cab8972462a21876028d0;hb=853f67b0b7b8121d572cff34d40f7b28cac8f65e;hp=8e04c3c8bc4db26ef5603f5eee28068e3d39162d;hpb=df316253862dc50e8e5a790d9634ef90be37badb;p=fms.git diff --git a/include/ifmsxmldocument.h b/include/ifmsxmldocument.h index 8e04c3c..ae555a1 100644 --- a/include/ifmsxmldocument.h +++ b/include/ifmsxmldocument.h @@ -90,6 +90,17 @@ protected: } return false; } + + const std::string SanitizeSingleString(const std::string &text) + { + std::string returntext=text; + // remove bogus chars from text string + for(char i=1; i<32; i++) + { + returntext=StringFunctions::Replace(returntext,std::string(1,i),""); + } + return returntext; + } };