Item12322: WysiwygPlugin should remove useless spans etc
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
I'm using an inline html wysiwyg editor that uses the html as we generate it
the topic div contains an extra bit
<span id="TopicEnd"></span>
i recon it'd be worth noticing it and killing it
--
SvenDowideit - 30 Dec 2012
Defer to 1.2.1.
--
GeorgeClark - 01 Jun 2014
I can't accept deferral of this - I have to be able to properly clean the html, for other reasons.
The solution is to support ignoring spans that only have an ID, and I have that coded. the trick is to identify useless tags, and to do that we need to examine the attributes, and ignore any tags that only contain attributes that we don't want to keep - for example, the
id
attribute on
span
, or maybe the
face
attribute on
font
- otherwise those attributes block clean conversion of HTML to TML.
--
CrawfordCurrie - 20 Jan 2015