Hi
Is it possible to create "line breaks" (like saying /n or something) in the Description and Comments Field through a script?
I want to convert <p> and <br> to line breaks, so that text in paragraphs on a webpage doesn't end up as one long paragraph in AMC.
Line breaks in Description Field through script
-
bmm
- Posts: 10
- Joined: 2002-07-27 08:57:27
- Location: Denmark
-
antp
- Site Admin
- Posts: 9902
- Joined: 2002-05-30 10:13:07
- Location: Brussels
in the code the linebreak is the ASCII value of the character, so newline & carriage return :
If you want to replace the <p> and <br> you can do this :
(here you'll get an double line break for <p> tag)
Code: Select all
value := atext + #13#10 + anothertext
Code: Select all
value := StringReplace(value, '<br>', #13#10);
value := StringReplace(value, '<p>', #13#10#13#10);
-
bmm
- Posts: 10
- Joined: 2002-07-27 08:57:27
- Location: Denmark