T
T
tennalian2015-06-30 10:20:47
PHP
tennalian, 2015-06-30 10:20:47

How to remove the replacement of quotes with special characters in Drupal 7?

The essence of the problem. I add Yandex metrics goals through template.php in this way:

$form['submit']['#attributes']['onclick'] = "yaCounterXXX.reachGoal('lalala'); return true;";

At the same time, in the DOM, the quotes are replaced by 'and it doesn't work.
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Arutyunov, 2015-06-30
@tennalian

Similar problems and solutions are described
https://www.drupal.org/node/1775432
https://www.drupal.org/node/139459

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question