我发现这一功能是为了清理MS Word标记:
$html = ereg_replace("<(/)?(font|span|del|ins)[^>]*>","",$html);
$html = ereg_replace("<([^>]*)(class|lang|style|size|face)=("[^"]*"| [^ ]* |[^>]+)([^>]*)>","<\1>",$html);
$html = ereg_replace("<([^>]*)(class|lang|style|size|face)=("[^"]*"| [^ ]* |[^>]+)([^>]*)>","<\1>",$html);
罚款。 然而,我要以预选取代ereg_replace(deprecated)。 当我这样做时(有/有限制),该职能就不再奏效。
I understand very little of regular expressions, I m afraid... Some wizard here that can help me with this? It would be very much appreciated!!