When loading a text file how can I keep the apostrophe and quotes without the jibberish.
make the textfield an “html field”
or you can replace them again with php bewfore sending the text back to flash
Well…add a backslash before your quotes/apostraphies, and it will keep the apostraphy, you don’t need to make an html text or anything, you just add a quick “/” and you are set. Like, put this in your variable that is put into the text field:
"By puting in slashes, you can preserve /"These quotes/"";
Err… I think the backslashes should go the other way.
Anyways, use the html codes for proper quotes, and you will get best results. Not only do you not need to backslash-encode them, you also get “smart quotes,” which aren’t simple double-quotes, but have direction.
For a left curly quote, use [font=monospace][noparse]“[/noparse];[/font], and for right, use [font=monospace][noparse]”[/noparse];[/font].
Here’s more info: http://www.dwheeler.com/essays/quotes-in-html.html
[whisper]Hehe, that guy has the same name as my dad… except for the middle name.[/whisper]
Err… I think the backslashes should go the other way.
Anyways, use the html codes for proper quotes, and you will get best results. Not only do you not need to backslash-encode them, you also get “smart quotes,” which aren’t simple double-quotes, but have direction.
For a left curly quote, use [font=monospace][noparse]“[/noparse][/font], and for right, use [font=monospace][noparse]”[/noparse][/font].
Here’s more info: http://www.dwheeler.com/essays/quotes-in-html.html
[whisper]Hehe, that guy has the same name as my dad… except for the middle name.[/whisper]