How to filter out the white squares in php and js? Before and after entering the database, the screenshots are read directly from the database, and the white squares are displayed in the database. blocks.
You have to deal with this when inserting into the database. It may be garbled characters or unrecognizable strings. It depends on what data you insert.
replyWhat is inserted is a string. I am afraid that someone may accidentally generate special symbols. How should I handle it before inserting it into the database?
replyWhat is inserted is a string. I am afraid that someone may accidentally generate special symbols. How should I handle it before inserting it into the database?
Replace with empty before inserting
You have to deal with this when inserting into the database. It may be garbled characters or unrecognizable strings. It depends on what data you insert.