简体   繁体   English

整洁转换<Span Style="Font-Style:Bold">为</span><Class="C1">

[英]Tidy Converting <Span Style="Font-Style:Bold"> to <Class="C1">

I am using the PHP 5 Tidy class to format html.我正在使用 PHP 5 Tidy 类来格式化 html。

Everything is fine except when it gets passed a style attribute, when it changes it into a class attribute.一切都很好,除非它被传递了一个样式属性,当它将它更改为一个类属性时。 As I am only formatting the body of a document, not the head, there is no class defined in the head for the attribute to read.由于我只格式化文档的正文,而不是头部,因此头部中没有定义要读取的属性的类。

I have looked through all the Tidy options but can't work out how to stop this behaviour.我查看了所有 Tidy 选项,但不知道如何阻止这种行为。

Thanks谢谢

尝试关闭清洁选项。

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

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