Always nice to see someone spending time on new scripts
If I understand your question correct, you want to replace the website's HTML command
<br> into a script's linebreak.
The function you are looking for is
StringReplace(S, OLD, NEW: string): string;
This function replaces OLD by NEW from inside string S.
[HTMLDecode only decodes some special characters like "äöé.."]
For a linebreak you need to replace the
<br> with a
#13#10.
An example:
string01 := 'Websites HTML code <br> Second line.'
string01 := StringReplace(string01, '<br>', #13#10);
or
stringXX := StringReplace(string01, '<br>', #13#10); if you don't want to change string01.
Now the result should look like:
Websites HTML code
Second Line.
If you have not done yet, you should have a look on the AMC helpfile / topic "script files creation" - it's really useful.