jQuery plug-in that scrambles a given text randomly but keeps it surprisingly readable
- standard jQuery plug-in
- scramble any set of (text) elements
- configurable regex
$('p').scrambleText();
You can optionally configure the plug-in to set another regular expression to sepearte your text in single words, e.g. to allow special characters (see demo.html with German text).
$('h1, p').scrambleText({
regex: /[A-Za-zÄÖÜäöüß]+/g
});
Cascaded HTML elements (e.g. inner span elements or formattings with strong) get lost.
This plugin is released under the MIT License. Feel free to use it in personal and commercial projects.