如何使用 xmlrpc 将 html 内容发布到 wordpress? [英] how can I post html content to wordpress with xmlrpc?

查看:29
本文介绍了如何使用 xmlrpc 将 html 内容发布到 wordpress?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个脚本可以使用 xmlrpc 将一些数据发布到 wordpress.

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.

但是,如果其中包含任何 HTML 格式,则在尝试添加帖子时会被严重破坏.

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

如何使用 xmlrpc 将 html 内容发布到 wordpress?

How do I post html content to wordpress with xmlrpc?

推荐答案

这是一个插件,它修复了一些 xml 库的一些版本的问题,该库剥离了 html: 插件 – LibXML2 Fix |约瑟夫·斯科特

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

这篇关于如何使用 xmlrpc 将 html 内容发布到 wordpress?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆