Jump to content

Text Boxes and Apostrophes


Recommended Posts

Can someone help me with working with apostrophes?



If DESC has an apostrophe, the DESC is getting truncated in the text field at the point of the apostrophie.

What's the best way to deal with this?

Feel free to talk about any text box/apostrophe related PHP issues here.

In my forums, I'm simply using a string replace to remove them completely cause they always seemed to cause issues

Link to comment
Share on other sites

Re: Text Boxes and Apostrophes

Looked promising with the switch from my print to the echo and using the truncation for the variable rather than {} but the display value is still being truncated. Immediately before the output, I do a print_r($msn) and the DESC variable is correct but in the text box, it is truncated

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...