php - Wordpress Titles in Javascript -
php - Wordpress Titles in Javascript -
i have post title ' in it. wordpress outputting encoded html entity (i’m
example), when utilize track events in analytics mixpanel, don't nice human-readable title, title html entity, obviously. i've been searching , tried several things, nil seems work.
here's current code.
mixpanel.track("episode view", { "title": epnum + " <?php wp_kses_decode_entities(the_title()); ?>", "episode number": epnum, "season": 1
can point me way decode string say, contains '
, escape javascript?
javascript php wordpress mixpanel
Comments
Post a Comment