Opened 14 years ago

Closed 11 years ago

#6184 closed New Feature (fixed)

Better HTML code clean up

Reported by: Wiktor Walc Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Discussion Cc:

Description

We are mainly focused on cleaning up the content while pasting, but there is still a lot of content in various systems that was created long time ago that may contain broken / invalid HTML.

Suppose we have the following HTML source at the beginning:

<p><font face=""><font face=""><font face="">fooo</font></font></font></p>

The <font> tag is totally useless there and theoretically could be simply removed by CKEditor from the HTML source.

Change History (5)

comment:1 Changed 14 years ago by Tobiasz Cudnik

Status: newpending

What about breaking CSS selectors based on tag path ? Should all font tags be removed ?

comment:2 Changed 14 years ago by Wiktor Walc

I was thinking about simply removing <font> tags without any reasonable attribute. Empty "face" attribute makes no sense.

comment:3 Changed 14 years ago by Tobiasz Cudnik

Keywords: Discussion added
Status: pendingnew

comment:4 Changed 14 years ago by Frederico Caldeira Knabben

@wwalc, I'm starting to see all this client side cleanup as a problem, because there are too many things to be considered, and the code can start to become larger and larger.

What about a server side processing instead (aka HTMLTidy and friends)? We could add a feature that sends the cleanup data to any URL for processing, additionally offering ready to use solutions for some common languages.

This will make the cleanup procedure richer, adding also more power to end developers through configuration options, leaving our client code smaller.

comment:5 Changed 11 years ago by Piotrek Koszuliński

Resolution: fixed
Status: newclosed

Targeted by the ACF.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy