Code Snippet
Search/Replace
jQuery(function () {
jQuery(":contains(FIND)").not(":has(:contains(FIND))").each(function () {
var that = $(this),
html = that.html();
html = html.replace(/(\(FIND:.*?\))/g, "REPLACE-WITH");
that.html(html);
});
});
That is so over-complicated.
I think the only reasonable response to that is…
“Put up or shut up.” Let’s see your alternative.
I would if I could work out how to post code into these comment blocks.
This would be javascript, so no special formatting is needed at all. Just put it in between <pre><code> tags. If it comes out fucked up, I fix it.
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.