Hi Giovanni,

good catch, no, it does not.  This will:

perl -ap -e 's/<div [^>]*>|<\/div>//g' orgoutput.html > simple.html

Many divs may be in the same ling because of the /g switch on the substitution command. It causes the rest of the line after the match to be parsed again.

- Carsten

On Sep 25, 2009, at 3:15 PM, Giovanni Ridolfi wrote:

If I could get org-mode to export pure html without
all the <div> tags I think I am done.
I guess the easiest would be to just post-process the html
file
produced by Org.  For example with perl (untested):

perl -ap -e 's/<div [^>]*>//g' orgoutput.html >
simple.html


[OT] comp.perl.group ;-)

Carsten,

I'curious (and also a bit provocative ;-),
does your command work also for </div> tags ?

Is there a way to remove both <div> and </div>
in the same line?

cheers,
Giovanni






_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to