Html encode devode?

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
ianhull
Forum Contributor
Posts: 310
Joined: Tue Jun 14, 2005 10:04 am
Location: Hull England UK

Html encode devode?

Post by ianhull »

Hi guys,

I am playing with html and passing it in and out of the database but after editing the record it changes the html and then it does not show properly.

anyone know why?

First insert looks like this and is fine.

Code: Select all

<DIV><SPAN style="\"FONT-SIZE: " Arial\\\? FONT-FAMILY: 10pt;><STRONG>
After updating it look like this

Code: Select all


<DIV><SPAN style=\\\"FONT-SIZE: 10pt; FONT-FAMILY: Arial\\\"><STRONG>
any help greatly appreciated
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Post Reply