Title: Wrong custom HTML after update
Last modified: August 22, 2016

---

# Wrong custom HTML after update

 *  Resolved [jbx](https://wordpress.org/support/users/jbx/)
 * (@jbx)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wrong-custom-html-after-update/)
 * I’ve just updated to Version 3.2.0, and something seems to be wrong in the output
   of the widget. I use the following custom HTML (which works fine on previous 
   versions).
 * `<li>{thumb} <div class="wpp-title">{title}</div></li>`
 * Immediately after update, I am getting this when I do ‘View Source’ in my browser:
 * `& lt; li & gt; ...`
 * It seems that the HTML tags are being converted to HTML entities, with the `<`
   and `>` converted to `& lt;` and `& gt;` etc.
 * (I added the spaces myself because this editor was converting them automatically)
 * I rolled back to the previous version and it worked fine again.
 * [https://wordpress.org/plugins/wordpress-popular-posts/](https://wordpress.org/plugins/wordpress-popular-posts/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wrong-custom-html-after-update/#post-5554705)
 * Thanks for the report! I’ll look into it.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wrong-custom-html-after-update/#post-5554714)
 * Alright, here’s a quick & dirty fix for the time being:
    1. Go to Plugins > Editor and select WordPress Popular Posts from the drop down
       at the right.
    2. Find: `$content = $this->__format_content($instance['markup']['post-html'], 
       $data, $instance['rating']) . "\n";` and replace it with: `$content = htmlspecialchars_decode(
       $this->__format_content($instance['markup']['post-html'], $data, $instance['
       rating']), ENT_QUOTES ). "\n";`
    3. Hit the Update file button to save changes.
 * Alternatively, you might just want to wait a few minutes while I upload the fix.
   I won’t be releasing version 3.2.1 though, so redownloading 3.2.0 should do the
   job.
 *  Thread Starter [jbx](https://wordpress.org/support/users/jbx/)
 * (@jbx)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wrong-custom-html-after-update/#post-5554715)
 * Hi Hector,
 * No worries, I will wait for your update.
    The production site is running fine
   with the older version.
 * Thanks.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wrong-custom-html-after-update/#post-5554723)
 * Just uploaded the fix. Please redownload version 3.2.0 and let me know how it
   goes.
 *  Thread Starter [jbx](https://wordpress.org/support/users/jbx/)
 * (@jbx)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/wrong-custom-html-after-update/#post-5554725)
 * Worked perfectly.
 * Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Wrong custom HTML after update’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [jbx](https://wordpress.org/support/users/jbx/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/wrong-custom-html-after-update/#post-5554725)
 * Status: resolved