How do I get Log.d
to ignore %
in the HTML source code? Or tell Log.d
not to format the code?
The HTML code I send to my program:
<input type="hidden" name="Mode" value="Search%20Statutes" />
The procedure I created:
procedure ThtmlParser.DebugText(ExtraStr, Str: string);
var
CombineStrings: string;
begin
CombineStrings := ExtraStr + Str;
Log.d(CombineStrings);
if Assigned(FOnDebug) then
begin
FOnDebug(CombineStrings);
end;
end;
How I use it:
Target := '<input type="hidden" name="Mode" value="Search%20Statutes" />'
DebugText('Target: ', Target);
The error I'm getting:
First chance exception at $756C1812. Exception class EConvertError with message 'No argument for format 'Target: <input type="hidden" na''. Process htmlParserExample.exe (5168)
What I think is happening, that Log.d
thinks the %
in the HTML code is for formating when it is not.