i have been saving buffer content in a mysql text field , but when content exceeded the number of characters limit, code is crunched.
so how can i optimize html buffer content by removing tabs and white spaces from the code using php ?
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 don’t you use a type able to keep all your data? E.g. LONGTEXT or MEDIUMTEXT? You can however strip away all repetition of space character using
ADD
As noticed in comments, this will crunch every repeated “space” character even when it’s meaningful. This won’t work with default pre tag style, and with any other tag with CSS that changes the white-space attribute.