How can I remove unused, nested HTML span tags with a Perl regex?

后端 未结 4 1141
南旧
南旧 2021-01-06 10:23

I\'m trying to remove unused spans (i.e. those with no attribute) from HTML files, having already cleaned up all the attributes I didn\'t want with other regular expressions

4条回答
  •  灰色年华
    2021-01-06 10:54

    With all your help I've published a script that does everything I need.

    http://github.com/timabell/decrufter/

提交回复
热议问题