Hi there
I'm trying to write a simple plug-in that accesses the selected HTML markup. Have a look at these samples:
- <p>hello <span class="test">world</span>. </p>
- <p>hello <span style="color: red">world</span>.</p>
When selecting the word "world" and starting my plug-in, the submitted content is the following:
- The quotation marks are missing. I'm getting <SPAN class=test>world<SPAN>
- The attribute is there, including quotation marks
...I don't know which attributes are affected (and why there is a distinction of cases in the first place!), but it sure is annoying, as I can't parse the submitted markup properly due to invalid content. I'd be most happy if I'd really get the selected markup (also without upper casing of the tags) - is that possible?
Cheers,
Philipp
Confessions of a Code Addict:
http://www.hardcodet.net