I think I understand your question now. :-) Okay, I can't answer your question, but here's what I got:
I believe that WordPress is using this feature in the visual editor. I don't know how they've done it, but it seems to me that it's using javascript to transform to transform the html code.
Maybe you can find the javascript code, I couldn't find it.
|