One-line Linux CLI to remove span tag

Some CMS are too smart to handle <span> tag properly.

I have to copy the content into clipboard, remove the span tag, and paste it back into CMS.

Actually all the trouble could be saved by one line linux command,

xclip -o|sed 's%</*span[^>]*>%%g'|xclip -selection c
Advertisements