Converting a Word document into usable HTML in PHP

前端 未结 5 1921
轻奢々
轻奢々 2020-12-17 03:41

I have a set of Word documents which I want to publish using a PHP tool I\'ve written. I copy and paste the Word documents into a text box and then save them into MySQL usin

5条回答
  •  隐瞒了意图╮
    2020-12-17 04:37

    A better solution would be to ensure that your database is set-up to support UTF-8 characters. The additional characters available in the extended set should cover all the "non-standard" characters that you're talking about.

    Otherwise, if you really must convert these characters into HTML entities, use htmlentities().

提交回复
热议问题