“the_content” filter can get added with other filters from plugins and themes which could alter content, when you simply want this to format the post_content to HTML format.
Is there a better solution for this that other plugins do not add filters to and can format the post content to HTML format just like this filter do?
The Core filters on
the_content
are:You can apply whichever of those you’d like to any string you’d like. The second parameter is the name of a function which takes a string as input, so…
And so on. Use the ones you want. Ignore the others. That should give you plenty of control. Plugins cannot hook in if there is no hook, but be careful robbing a theme of expected functionality is unfriendly and could break things.
http://codex.wordpress.org/Function_Reference/wptexturize
http://codex.wordpress.org/Function_Reference/convert_smilies
http://codex.wordpress.org/Function_Reference/wpautop