开发者

Extra BR tag appears between P tags on Facebook fan page notes

开发者 https://www.devze.com 2023-04-08 09:26 出处:网络
We have a Facebook page that imports notes from our RSS feed. Content from our feed is like <p>Foo bar.</p>

We have a Facebook page that imports notes from our RSS feed. Content from our feed is like

<p>Foo bar.</p>
<p>Bar foo.</p>

At our Facebo开发者_StackOverflow社区ok page, when the note is imported, content is like

<p>Foo bar.</p><br /><p>Bar foo.</p>

Apparently the \n in the original content is replaced with a br tag.

As a result, this FB note is a burden to read.

I haven't yet tried removing the \n between paragraphs in original content. I was hoping this issue could be fixed without such artificial maneuvers.

Our feed goes through Feedburner. Not sure if that's related.

Any ideas how to get rid of this extra line break?


Set the open graph og:title and og:description meta tags as described here: http://developers.facebook.com/docs/opengraph/

0

精彩评论

暂无评论...
验证码 换一张
取 消