I know how to replace part string...

if (linia->Contains("system_token")) {poprawka = linia->Replace( "system_token", systems );}

but what should I do, If i need to replace ENTERs (linebreaks)...
For example:
User type in textbox

Hey,
I am
Michael

The result (taken as variable) should be:

Hey,</br>I am</br>Michael

Thx!

Copy everything to a new string and when you hit a '\n' insert "<br>" instead.

Thx!
it works!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.