Community
    • Login

    Select only text strings in HTML

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    htmlhtml encoding
    2 Posts 2 Posters 1.8k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bart Van AudenhoveB Offline
      Bart Van Audenhove
      last edited by

      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/…

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Bart Van Audenhove
        last edited by

        @Bart-Van-Audenhove

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

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0

        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors