0

I have passing some contents to facebook share url. Which contains some html also.

The problem is it cannot handle the html, When I write , it displays it instead of bolding the text in these tags.

So How will I handle it? I use htmlentities(), htmlspecialcharacters(), and urlencode() but could not solved the problem.

1
  • Where are you sending this code? where is it received? Commented Jan 25, 2012 at 15:54

2 Answers 2

2

You should use urlencode() and do something like:

$link = '<a href="http://www.example-site.com/index.html">link-text</a>';
$encoded = urlencode($link);
Sign up to request clarification or add additional context in comments.

1 Comment

As mentioned in my above comment, I have used the urlencode() but did not work
0

If I understand your question and comment correctly, you want to show a bold text instead of the HTML itself.

So, if you are showing the HTML by doing urlencode() that means the encode is one to many, try without the urlencode()

If that doesn't work, then probably HTML is not supported there.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.