Select only text strings in HTML



  • I would like to use Notepad++ to change all accents (é, à, etc.) in a HTML doc to HTML codes (eg. &eacute).
    However, if I select all and then do Plugins > HTML tag > encode entities, also tags and parameters are encoded (eg. <h2 class=‘header’>List</h2> becomes <h2 class=‘header’>List</h2>).
    Is there a way to select only the text strings within the tags? In one way or another Notepad++ recognizes this, because it displays these text strings in black, and the tags etc. in blue/red/…



  • @Bart-Van-Audenhove

    you can use regular expression search and replace with a technique like described here.

    Cheers
    Claudia


Log in to reply