htmlentities

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hmsg
Forum Commoner
Posts: 42
Joined: Sun May 14, 2006 9:48 am

htmlentities

Post by hmsg »

Hi.

I'm having a problem with a field of my DB.

I have a field in my db that have text with html code.

Example: "Mário it's <strong>fired</strong>. See <a href="#">Link</a>"

I can't put this im my file correctly, because my tags is being printed to the html code and sometime even the special chars too (like: á). I've already try it with and without the htmlentities, but until now i couldn't find a way to solve this.

Anyone could Help me?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What do you want it to do?
hmsg
Forum Commoner
Posts: 42
Joined: Sun May 14, 2006 9:48 am

Post by hmsg »

I want that my text it will be sow Mário is fired (the word fired showed in bold). And the word link with the link i want
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Okay, so you want it to show
Mário is fired. See Link
What is it showing then?
Post Reply