Title: Replacing in HTML code only
Last modified: January 31, 2025

---

# Replacing in HTML code only

 *  Resolved [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/replacing-in-html-code-only/)
 * Hello,
 * I need to find a shortcode [in brackets] in several pages and replace it with
   a HTML code. Meaning that the HTML code should be added only in the HTML version
   of the pages.
 * Is there a way to limit the search/replace only to HTML page/post versions?
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [jenneycs](https://wordpress.org/support/users/jenneycs/)
 * (@jenneycs)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-in-html-code-only/#post-18341858)
 * Hi [@dsl225](https://wordpress.org/support/users/dsl225/),
 * Apologies for the delayed response. Yes, you can create rules specifically for
   real-time replacements, which will only modify the **HTML output** before it 
   is rendered in the browser. This ensures seamless, on-the-fly content updates
   without changing the original data.
 * You can check more from our website – [https://docs.codesolz.net/better-find-and-replace/real-time-find-replace/use-shortcode-rule/](https://docs.codesolz.net/better-find-and-replace/real-time-find-replace/use-shortcode-rule/)
 * Hope this helps.
 * Thanks
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-in-html-code-only/#post-18342495)
 * Well noted, many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Replacing in HTML code only’ is closed to new replies.

 * ![](https://ps.w.org/real-time-auto-find-and-replace/assets/icon-256x256.png?
   rev=2293434)
 * [Better Find and Replace - AI-Powered Suggestions](https://wordpress.org/plugins/real-time-auto-find-and-replace/)
 * [Support Threads](https://wordpress.org/support/plugin/real-time-auto-find-and-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/real-time-auto-find-and-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-time-auto-find-and-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-time-auto-find-and-replace/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [John](https://wordpress.org/support/users/dsl225/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/replacing-in-html-code-only/#post-18342495)
 * Status: resolved