Title: [Plugin: Word Replacer] Code line replacement
Last modified: August 19, 2016

---

# [Plugin: Word Replacer] Code line replacement

 *  [FenyX](https://wordpress.org/support/users/fenyx/)
 * (@fenyx)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-word-replacer-code-line-replacement/)
 * I want to filter some objects automatically, so I try to replace it with an invisible
   object such as “`<!-- Filtered Ads -->`“.
 * So I enter the following text in the Original left field to create my first rule
   “`
   <p><a target="_blank" rel="nofollow" href="http://www.anydomain.com">Advertising
   Links » Item</a></p>`“
 * but after clicking ‘Add/Update Words’ my code text is modified to
    “`<p><a target
   =\"_blank\" rel=\"nofollow\" href=\"http://www.anydomain.com\">Advertising Links»
   Item</a></p>`“
 * The result of course is not what I’ve expected as it replaces the full posts 
   content. I’ve tested to enable/disable the “Insensitive” checkbox but it changes
   nothing. “Posts” is checked and “RegEx” is unchecked.
 * I know this plugin hasn’t been made to replace some parts of the posts code but
   I can’t find a good filter plugin that would suit my needs. So any help on using
   Word replacer would be very welcome…

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

 *  Thread Starter [FenyX](https://wordpress.org/support/users/fenyx/)
 * (@fenyx)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-word-replacer-code-line-replacement/#post-2006467)
 * I’ve just tested to replace `anydomain.com/index.php/` with `google.com/search?
   q=` and my full posts content has still disappeared. Using firebug I can see 
   that my div.entry class has been fully removed (huh?!?). Strange. Do I have to
   abandon this plugin to do what I need or did I just make something wrong?
 *  Thread Starter [FenyX](https://wordpress.org/support/users/fenyx/)
 * (@fenyx)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-word-replacer-code-line-replacement/#post-2006477)
 * Finally I can do it with the [**Text Obfuscator**](http://www.flutt.co.uk/development/wordpress-plugins/text-obfuscator/a-word-replacement-plugin-for-wordpress/)
   concurrent plugin. No RegEx but at least it works well…
    Anyway some help about
   Word Replacer would be still welcome.
 *  Plugin Author [takien](https://wordpress.org/support/users/takien/)
 * (@takien)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-word-replacer-code-line-replacement/#post-2006659)
 * Hello, what version of word replacer you’re using? There’s a problem with stripslashes
   in old version. However, in version 0.2.2 that problem already fixed.
    if it 
   still happens, make sure your `magic_quotes_gpc` in your php settings is set 
   to OFF.
 * thankyou for using my plugins.
 *  Thread Starter [FenyX](https://wordpress.org/support/users/fenyx/)
 * (@fenyx)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-word-replacer-code-line-replacement/#post-2006660)
 * It was 2 weeks ago so I’ve switched to Text Obfuscator, sorry. Anyway as I’ll
   need to make some “search and replace” on another blog very soon, I promise to
   try your new version and to give you my feedback. Thanks for your work, takien.

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

The topic ‘[Plugin: Word Replacer] Code line replacement’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/word-replacer.svg)
 * [Word Replacer](https://wordpress.org/plugins/word-replacer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/word-replacer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/word-replacer/)
 * [Active Topics](https://wordpress.org/support/plugin/word-replacer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/word-replacer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/word-replacer/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [FenyX](https://wordpress.org/support/users/fenyx/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-word-replacer-code-line-replacement/#post-2006660)
 * Status: not resolved