dtdt
1
is it possible to pass webpages to remove all tag style information, but leave the tag...
say I have
<h1 style='font-size: xxx; color: xxxxxx'>headline 1</h1>
i want to get
<h1>headline 1</h1>
BTW, i got an oneliner here to remove all tags:
sed -n '/^$/!{s/<[^>]*>//g;p;
Thanks a lot.
manuu
2
You tried this?
sed -n 's/ style=[^>]*//p;d'
dtdt
3
come on. style=... is just an example. html style formats can be really complicated. like <h1 align=center>headline 1</h1>
manuu
4
come on!!
sed -n 's/ .*=[^>]*//p;d'
dtdt
5
thanks man. how i forgot the =. ty