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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -