Revision: 41831
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 23, 2011 20:33 by pedromagalhaes
Initial Code
$(document).ready(function(){ $('.div p').each(function(){ $innerHtml = $(this).html(); if($(this).html() == " " || $(this).html() == undefined || $(this).html() == ""){ $(this).hide(); } }); });
Initial URL
Initial Description
This simple snippet let's you hide unwanted strings inside paragraphs. I use this for text that come from javascript editors like tinymce.
Initial Title
Hide unwanted html that came from javascript editors (like tinymce, etc.)
Initial Tags
Initial Language
jQuery