tsteward Well-Known Member Licensed User Longtime User Oct 14, 2019 #1 How can I find a line return in a string returned from an edittext and replace it with characters "<br>"
How can I find a line return in a string returned from an edittext and replace it with characters "<br>"
rraswisak Active Member Licensed User Longtime User Oct 14, 2019 #2 You can try this: B4X: EditText1.Text = EditText1.Text.Replace(CRLF,"<br>") Upvote 0
MarkusR Well-Known Member Licensed User Longtime User Oct 14, 2019 #3 btw the CRLF is just a single char constant. (not CR) Upvote 0
DonManfred Expert Licensed User Longtime User Oct 14, 2019 #4 if you enter a multiline text in a multiline-edittext the lines are splitted by CRLF (single char). Upvote 0
tsteward Well-Known Member Licensed User Longtime User Oct 14, 2019 #6 rraswisak said: You can try this: B4X: EditText1.Text = EditText1.Text.Replace(CRLF,"<br>") Click to expand... Thank you Upvote 0
rraswisak said: You can try this: B4X: EditText1.Text = EditText1.Text.Replace(CRLF,"<br>") Click to expand... Thank you