By default, WordPress does not close all paragraphs, i.e. one can have paragraphs that start with but with no closing . The code editor is useless, because paragraph tags do not appear, and if I add them explicitly, they are removed automatically from the editor. This is annoying because this prevents XML validation, useful to detect some editing mistakes. How to ask WordPress to generate XHTML5, i.e. the XML syntax of HTML5?