W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2005

Strip NOLAYER and everything inside? (urgent)

From: Yury V. Zaytsev <zaytsev@sandy.ru>
Date: Fri, 19 Aug 2005 11:42:18 +0400
Message-ID: <247614831.20050819114218@sandy.ru>
To: html-tidy@w3.org

Hello, list!

I urgently need a workaround to make TIDY strip everything it finds if
it is enclosed by <nolayer> tags.

The reason is that some editors (ab)use it to hide old stuff from the
browsers and I was asked to make it strip that stuff automagically:

<style id="NOF_STYLE_SHEET">



Currently tidy strips out <nolayer>  and places

<style id="NOF_STYLE_SHEET">


to the head of the document.

I am trying to recompile it placing  DiscardElement(doc, element);
calls in ParseScript but that is obviousely not the beast idea since
it does not work correctly.

Very grateful for your help,

Sincerely yours,
Yury V. Zaytsev
Received on Friday, 19 August 2005 10:06:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:55 UTC