E
E
evgenin2019-02-24 15:53:36
Classmates
evgenin, 2019-02-24 15:53:36

How to escape all characters for publication in Odnoklassniki?

Before sending a message to a group in Odnoklassniki, I escape characters, but still sometimes when publishing test messages, an error 100 occurs

$message = strip_tags(html_entity_decode($data['content'], ENT_QUOTES, 'UTF-8'));
$message = html_entity_decode($message, ENT_QUOTES, 'UTF-8');
$message = str_replace(array(' '), array(' '), $message);
$message = str_replace(array('*', '_', '`','"','«','»'), array('\*', '\_', '\`', '\"','\«','\»'), $message);

Tell me what else can be screened, why such an error occurs

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question