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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -