Export as html (necessary tags)

  • I have tried to replicate a very old program that, in addition to doing several things, such as removing spaces between paragraphs or removing colors and other things, seeks to export a .rtf document to .html, but when it is exported, <p> tags are not generated, only <span> tags are generated, I would like to know if it is due to the new versions of WP, or is there a way to assign the file that I want to save the documents with those <p> tags.

  • I already discovered the problem, it's because of the version of wp, before it only saved <p> tags, and now for some reason it wraps them in <div>, and in order not to complicate myself by modifying internal files that handle tags like "WPIO", I made an ansipos and then a replaceText