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:
As always, the plugin is available from the WordPress Plugin Directory.
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.
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.