php 包括:ms word 生成的 html 文件和垃圾 css

发布于 2024-07-24 06:48:43 字数 97 浏览 2 评论 0原文

当然,word 生成的 html 很糟糕。 但不幸的是,我需要从现有文档中获取一些文本到我的 php 页面。 问题是,它弄乱了我原始页面的 css。 有什么出路呢? 谢谢!

word generated html sucks, of course. but i unfortunately need to fetch some text from such existing docs to my php pages. the problem is, then it messes up my original page's css. what could be a way out? thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

泪是无色的血 2024-07-31 06:48:43

尝试这个。 它是一个 ereg 函数,可以从字符串中清除一些 Word HTML。

Try this out. It's a ereg function that clears some of the Word HTML out of a string.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文