Possible Duplicate:
Remove elements with only a space using jQuery
WordPress does this thing with adding <p> </p> when doing a line-break in the backend.
I wonder if it is possible to select those p‘s somehow with jquery.

I guess empty() wouldn’t work since it isn’t really empty but contains a . But contains() wouldn’t probably work either since a lot of other paragraphs also contain a space, right?
I only want to select those paragpahs that have only this ” ” inside.
UPDATE
I should have mentioned that I don’t want to remove the ps but add a class to it.
Add this to your
functions.phpfile if you have access to the theme files.I made it insert a class instead of removing.