Text Obfuscator Version 1.2

Post length: 87 words, about 0 and a half minutes.

I have just released an update to my simple WordPress string replacement plugin Text Obfuscator. This release contains a minor feature upgrade and a small change to the logic flow to make this and future new features easier to implement, it contains no bug fixes. It is tagged as version 1.2.

The full changelog is as follows:

  • Added option to match partial words.
  • Extracted regular expression building into it’s own function called by all replacement functions.

As always, the plugin is available from the WordPress Plugin Directory.

Posted on Tuesday 29th March, 2011 at 2:45 am in Text Obfuscator.
It was tagged with , , , .

2 comments

It ignores blanks!

For example, trying to change:

http://” to “abc”

or

“jim ” to “fred”

(without quotes) does not work.

It ignores the blank before or after the search word.

I need this to remove links from my blog from posters, but dont want to remove links from my html code.

Posted on 29th Sep 2011 at 3:12 am by jimmy.

You’re right, I’m removing spaces off the match input and replacement string. This is to help the majority of people who don’t want the whitespace in the match but might not realise it’s there.

I do appreicate your problem though, and I’ll work in a fix for this which I hope will suit everyone in the next couple of days. In the mean time you can remove the trim() function from line 117 (to stop spaces being removed in the match) and line 121 (to stop spaces being removed in the replacement) to make it work in your case.

Posted on 6th Oct 2011 at 12:36 am by Jonathon.

Leave a comment