Skip to content

Instantly share code, notes, and snippets.

@jonathanmoore
Created December 14, 2010 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanmoore/740848 to your computer and use it in GitHub Desktop.
Save jonathanmoore/740848 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
jQuery.fn.stripTags = function() {
var r = this.html().replace( /&lt;/g, '<' );
r = r.replace( /&gt;/g, '>' );
r = r.replace( /&amp;/g, '&' );
this.replaceWith( r );
};
$(document).ready(function() {
$("div.box.link .content_wrap strong").stripTags();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment