English 中文(简体)
CSS、Java、Wurent- Empty paragraphs和WYSIWYG编辑中的错误代码
原标题:CSS, JavaScript, HTML - Empty paragraphs and wrong code in WYSIWYG editors

• 为客户建造一个场所(新布局,已经存在,在Joomla为1.7。 我在文章中提出了一个问题,由客户通过WYSIWYG编辑完成。 为什么? 很糟的是,这部法律却 me。 有许多空档:

<p></p>

<p>&nbsp;</p>

甚至:

<p><span style="color: #008000;"><span style="font-size: medium;"><strong> </strong></span></span></p>

Can 我拿 Java或圣经学会的话去掉了吗? 或者,我也许会 t,因为我无法控制客户使用编辑的方式?

EDIT: So, Solutions by Kitgui.com do the trick -eck out this plugin - - 同药店一样。

最佳回答
问题回答

http://www.php.net/manual/en/book.tidy.php“rel=” 提迪班。 底堤有许多组合选择,你可以清理这些空壳,只有几条法典。

Something like:

<?php
$html = "MESSY HTML HERE";
$tidy = tidy_parse_string($html);
$tidy->cleanRepair();
echo $tidy;
?>




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签