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. é).
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/… -
you can use regular expression search and replace with a technique like described here.
Cheers
Claudia
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login