Community
    • Login

    Select only text strings in HTML

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    htmlhtml encoding
    2 Posts 2 Posters 1.6k Views
    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
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors