Stop wordpress removing html

 In Wordpress Admin

Stop wordpress removing html . Add the bellow code on your functions.php

function ns_override_mce_options($initArray) {
    $opts = '*[*]';
    $initArray['valid_elements'] = $opts;
    $initArray['extended_valid_elements'] = $opts;
    return $initArray;
add_filter('tiny_mce_before_init', 'ns_override_mce_options');
Recommended Posts

Leave a Comment

Start typing and press Enter to search

Let's work together

I'd love to work with you! Please fill out my project form to tell me more about your project/work. I reply to all enquiries within 48 hours.
Or call me on 07930 194000.


  • March - Booked
  • April - Limited
  • May - Limited


  • My day rate is £300.
  • I can provide a fixed price for your work.
  • Projects start at around £2,000.

Enquiry Form