简体   繁体   English

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

[英]php include: ms word generated html file and garbage css

word generated html sucks, of course. 当然,单词生成的HTML很糟糕。 but i unfortunately need to fetch some text from such existing docs to my php pages. 但不幸的是,我需要从这些现有的文档中获取一些文本到我的php页面。 the problem is, then it messes up my original page's css. 问题是,然后它弄乱了我的原始页面的CSS。 what could be a way out? 什么可能出路? thanks! 谢谢!

Try this out. 试试这个了。 It's a ereg function that clears some of the Word HTML out of a string. 它是一个ereg函数,用于清除字符串中的某些Word HTML。

或者html整洁在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM