Change (replace) tags to tags

As @Sally CJ mentioned, you should set a result of str_replace() to a variable. For a content you chose a right filter – the_content, for tinymce editor you need to use the_editor filter. As they a similar, you can use one function for both filters. In my example I use only one str_replace for opening … Read more