Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Select only text strings in HTML

    Help wanted · · · – – – · · ·
    html html encoding
    2
    2
    1262
    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 Audenhove
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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
        Copyright © 2014 NodeBB Forums | Contributors