M
M
MMMYIWW2016-12-17 21:19:13
JavaScript
MMMYIWW, 2016-12-17 21:19:13

How to put text wrapping when sending to wall.post VK API?

Hello! How to send text wrap to wall.post VK API if I enter it in textarea?
I read a lot of advice and they write there that in JS you need to replace: And a bunch of other answers of similar content. However, this does not work - the text does not wrap to a new line. I really look forward to your help, thanks!
message.replace("\n","<br>");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MMMYIWW, 2016-12-17
@MMMYIWW

Decided to change to:
message.replace("\n","%0a");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question