On 22/sep/09, at 13:15, Dennis Dam wrote:
Hi Dennis,
I had a similar problem in my project using Hippo 6: in order to
solve it,
I had to write my own nl.hippo.htmlcleaner.HtmlRepairer
(unfortunately
subclassing was not an option) in order to override
elementCleanup(List
bits), when it comes to
if (startElement.localName.equals("span")) {
Essentially I had to move the conditions to keep the <span> from
has only class attribute with recognized value
has style with certain recognized effects (bold/italic) ->
translate to
semantic correct tag.
to
has only class attribute with recognized value
has style
Of course, instead of translating <span> to <em> or <strong>, I
keep it
with the correct attributes.
Exactly! You probably made the same fix I had in mind. Do you still
have the
code for your custom htmlcleaner ?
Of course :-)
See attached.
Cheers.
--
Francesco Chicchiriccò
Delivery Manager
everett Italia ▸
TRUSTED TO KNOW
Head Office
Via Torino, 2 - 20123 Milano - Italia
Tel:
+39 02 72546847
Fax:
+39 02 72546418
Technology Centre
Via Federico Fellini, 2 G2/1 - 65010 Spoltore (PE) - Italia
Tel:
+39 085 2120342 / +39 085 2120537
Fax:
+39 085 2120342 / +39 085 2120537
Mob:
+39 329 0573276
e-mail:
[email protected]
Web:
http://www.everett.it
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html