How to remove htmlentities() values from the database?

前端 未结 6 1584
星月不相逢
星月不相逢 2021-02-08 04:42

Long before I knew anything - not that I know much even now - I desgined a web app in php which inserted data in my mysql database after running the values through htmlent

6条回答
  •  孤城傲影
    2021-02-08 04:56

    Since PHP was the method of encoding, you'll want to use it to decode. You can use html_entity_decode to convert them back to their original characters. Gotta loop!

    Just be careful not to decode rows that don't need it. Not sure how you'll determine that.

提交回复
热议问题