line break pb

S

steeve_dun

Hi,

I have this kind of code:
Items[0]=['<a
href="#x1">1st</a>']
Items[1]=['<a
href="#x2">2nd</a>']
....
I need to transform it or treat it to have just:
Items[0]=['<a href="#x1">1st</a>']
Items[1]=['<a href="#x2">2nd</a>']
without the line breaks.

Can anybody help me please.
Thanks

-steeve
 
G

Gomolyako Eduard

Hm.. see "replace" method of string type.

Exmaple Items[0] = Items[0].replace("\n", ""); or
Items[0] = Items[0].replace("\n\r", "");

(e-mail address removed) пиÑал(а):
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top