I already tried all the answers from this question.
I'm trying to post status on Facebook page using JavaScript SDK and it's working fine for me. But I'm facing some strange problem which is whenever I tried to insert a new line or tried to underline a text then on Facebook it's displaying html tag there.
e.g:
I've tried <center></center> it didn't work. I've tried <br> it didn't work. I've tried with invisible html characters, it didn't work. I've tried with '\n'it didn't work. I even used "\n".
The Angular bracket (<) is replace by <
Update
On Facebook side the status looks like this.
<p>I've tried <center></center> it didn't work. I've tried <br> it didn't work. I've tried with invisible html characters, it didn't work. I've tried with '\n' it didn't work.<br/><br/>However when I used "\n" instead of '\n' it still not worked for me.<br/><br/>Put <center>&nbsp;</center> for you need than one <br /> sadasdasd asd asd asdasd</p>
Inside the <p> tag all the brackets has been changed.
e.g: this (<) will be changed to < and this (>) will be changed to >
Question
Is there any way we can use html tags inside Facebook post or is there any way in which enter new line in Facebook post updated using JavaScript SDK.
Simply put, Facebook posts can't contain any HTML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With