[Plugin: Advanced Excerpt] V 4.1.1 inserting p and br tags which are breaking my media players
-
3.1 works fine and I was using it for weeks without a problem. I am using MediaElement.js to play audio files. A shortcode is used to display the player and I want the player to be in the excerpt.
When I upgraded to 4.1.1, it is now adding br and p tags WITHIN other player tags and I think this is what is breaking the player.
Here is the html code in the excerpt that is created to generate the player as it is displayed when using the Advanced Excerpt plugin version 3.1
<div id="post_audioplayer">LISTEN TO THE SHOW:<br /> <audio id="wp_mep_1" src="https://mp3filepath.com/hrn/audios/1834/xxxxxx.mp3" controls="controls" preload="none" > <object width="600" height="30" type="application/x-shockwave-flash" data="https://xxx.com/site/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf"> <param name="movie" value="https://xxx.com/site/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf" /> <param name="flashvars" value="controls=true&file=https://mp3filepath.com/hrn/audios/1834/xxxxx.mp3" /> </object> </audio> </div>
And here is the code in the excerpt when using v. 4.1.1
<div id="post_audioplayer">LISTEN TO THE SHOW:<br /> <audio id="wp_mep_1" src="https://mp3filepath.com/hrn/audios/1834/xxxxx.mp3" controls="controls" preload="none" ></p> <p> <object width="600" height="30" type="application/x-shockwave-flash" data="https://xxx.com/site/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf"><param name="movie" value="https://xxx.com/site/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf" /><param name="flashvars" value="controls=true&file=https://mp3filepath.com/hrn/audios/1834/xxxxx.mp3" /></object><br /> </audio><br /> </div>
you can see that they are identical, except that now there are br and p tags being added BETWEEN the opening and closing audio tags.
And this is breaking the players.
Anyone know how I can fix this?
- The topic ‘[Plugin: Advanced Excerpt] V 4.1.1 inserting p and br tags which are breaking my media players’ is closed to new replies.