P
P
paaaffka2018-09-25 19:06:37
API
paaaffka, 2018-09-25 19:06:37

How to make a line break?

Using the wall.get method, I take a record from the VKontakte wall, when the post is posted, instead of a line break , it’s just that it’s not there initially in the line. compose the Url of the post by hand and put %0A instead of a line break, then everything works, through str_raplace it doesn’t work out to replace it through urlencode, this garbage comes out %D0%A2%D0%95%D1%81%D1%82%3Cbr%3E%23test+%23ICO instead of text - test #ICO <br>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max Payne, 2018-09-25
@YardalGedal

In wall.get VK returns <br>, and in wall.post you need to send a line break (carriage) character \n.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question