birgire / wpse-playlist

WordPress - Playlist shortcode with external audio or video files. Wrapper for the native playlist in WordPress.
19 stars 8 forks source link

Ampersand in title or meta_artist #15

Closed lexxful closed 7 years ago

lexxful commented 7 years ago

Has anyone encountered a problem with a result of 'title' or 'meta_artist' parameters that have ampersand?

In my case Title represents ampersand as &#_038; and Artist as &_amp;

Is there some way to make it normal for reading in media player? 2017 05 12-17 14 02

birgire commented 7 years ago

Hi @killexx

I guess the visual editor has changed & to &.

You can e.g. try to view it in the Text mode instead and change from & to & and save.

Hopefully that works.

lexxful commented 7 years ago

The problem is that normal/direct output to html is normal, but when string goes through json list of tracks ampersand becomes encoded, and doesn't decode back to normal.

2017 05 12-18 11 04

birgire commented 7 years ago

Thanks for the screenshot, how does it look like in the Text mode in the editor?

lexxful commented 7 years ago

Normal shortcode usage don't have such a problem. So I will close this issue.

I try to use this plugin for direct php output without a shortcode, and in ajax request, but it seems that it is impossible or buggy, because many problems occur: 1) shortcodes don't work in ajax requests; 2) some symbols have problems with encoding