Skip to main content
Participating Frequently
August 16, 2023
Question

RH 2022: Search & Replace Content in HTML View

  • August 16, 2023
  • 1 reply
  • 164 views

Last question of the day... Outside of using an external tool, is there a way to search and replace tags in HTML view? For example, is there a way to change all instances of  <H2>Sample Text</H2> to something like <H23>Sample Text</H3>. Seems that the native search and replace feature only replaces topic content, and not the underlying code.

    This topic has been closed for replies.

    1 reply

    Peter Grainge
    Adobe Expert
    August 16, 2023

    I assume H23 is a typo and you meant H3.

     

    Find and replace has an option to work in Source Code. The problem though is you want to change the opening tag and closing tag but not the heading. You would need to use a regular expression for that. If you don't know how to do that, find a friendly developer (they do exist 🙂 ) and ply them with chocolate. Unfortunately not all developers can write regular expressions.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
    Participating Frequently
    August 16, 2023

    Yes... typo 🙂 And great! Thank you!