http://qs321.pair.com?node_id=1100577


in reply to Removing text between HTML tags

Use a proper HTML handling tool. XML::LibXML can handle HTML if it follows the standard decently. I usually use its wrapper XML::XSH2, in which you can extract the text simply as
open :F html input.html ; for //p echo .//text() ;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ