通过 Graph API 在 Facebook 状态更新中换行 [英] Line break in Facebook status update via Graph API
本文介绍了通过 Graph API 在 Facebook 状态更新中换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在编写一个使用 Graph API 的简单 Facebook 状态更新 Web 应用程序.它运行良好,除非我想在状态消息中包含换行符.我尝试添加一个简单的 HTML
标签,但这只是呈现为文本.
I'm writing a simple Facebook status update web app that uses Graph API. It works well except for when I'd like to include a line break in the status message. I've tried adding a simple HTML
tag, but this is just rendered as text.
有人知道这是否可行,如果可行,怎么做?
Anyone know if this is possible, and if so, how?
推荐答案
这听起来很傻,但这确实有效:在通常放置
的位置插入
.
It sounds silly, but this works:
Insert <center></center>
where you would normally put <br>
.
这篇关于通过 Graph API 在 Facebook 状态更新中换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文