apostrophe
Version:
Apostrophe is a user-friendly content management system. This core module of Apostrophe provides rich content editing and essential facilities to integrate Apostrophe into your Express project. Apostrophe also includes simple facilities for storing your r
19 lines (17 loc) • 437 B
JavaScript
// get-outer-html: a jQuery plugin that makes it easy to get the
// outer HTML of an element, including the element itself.
//
// Copyright 2013 P'unk Avenue LLC
//
// Please see:
//
// https://github.com/punkave/jquery-get-outer-html
//
// For complete documentation.
(function( $ ){
$.fn.getOuterHTML = function() {
var wrapper = $('<div></div>');
wrapper.append(this.clone());
return wrapper.html();
};
})( jQuery );