For a little background, here is what I am dealing with. I
have an input text box, which sends it's htmlText to a php script
which then saves it in a mysql database. This all works just fine.
The problem arises whenever I try to insert something like an image
tag. ie: <img src='../whatever/image.jpg'>
The text field seems to interpret the <, ', > with the
special characters < ' > like it says are
also supported in the help manual. The string is then stored in the
database with these special characters which would be fine but when
they are passed back to Flash later, flash prints the string as a
literal instead of grabbing the picture.
For example, say i wanted to insert the image called
The text field would pass the string <img
src='image.jpg'> to the database. The
database would then pass this string back to the text field after
being updated but the text field would then just show: <img
src='image.jpg'> instead of actually loading the image.
So, my question is: is there a way to get it to stop passing
> < etc? I have tried to replace them upon reading in
the string but it sees them at that point as a < > ' yet it
still will not load the picture. Is there any way around all this?
I hope that made sense! Thanks in advance.
edit: I forgot to mention that this is all in AS 3.0