how can I post html content to wordpress with xmlrpc?

℡╲_俬逩灬. 提交于 2019-12-10 15:32:53

问题


I've got a script to post some data to wordpress using xmlrpc.

If I use a simple string for the body like "This is a test" it works fine.

However, if it has any HTML formatting in it, it gets horribly mangled when trying to add the post.

How do I post html content to wordpress with xmlrpc?


回答1:


Here's a plugin that fixes a problem with some versions of an xml library that strips html: Plugin – LibXML2 Fix | Joseph Scott



来源:https://stackoverflow.com/questions/3055915/how-can-i-post-html-content-to-wordpress-with-xmlrpc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!