If a user types a really long string it doesn’t move onto a 2nd line and will break a page on my site. How do I take that string and remove it completely if it’s not a URL?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why would you want to remove what the user wrote? Instead, wrap it to a new line – there is a function in PHP to do that, called wordwrap