Hi there

I'm in the process of writing a plugin (for myself at the moment) in
which I use the plugin form to save some HTML into the options using
an over simplified form similar to the following:

---
$ui = new FormUI( strtolower( get_class( $this ) ) );
$ui->append( 'textarea', 'htmldata, 'options:foo__html', _t( 'HTML Code') );
$ui->append( 'submit', 'save', _t( 'Save Options' ) );
$ui->set_option( 'success_message', _t( 'Options successfully saved.' ) );
$ui->out();
---

Now the problem I'm encountering is I can't seem to get the HTML to
stay as I type it.

For example the following:

---
<div class="foo">
<!-- this is foo class -->
<b>Bold text</b>
</div>
---

... when saved is saved as ...

---
<div>

<b>Bold text</b>
</div>
---

Note the 'class="foo"' and html comment have been removed.

Now the part that puzzles me is the exact same code, when saved as
part of a Post (New -> Entry), is saved perfectly and works as
expected.

Is this another bug in the way InputFilter is handling the tags or am
I missing something really obvious here?

Cheers,
Colin


-- 
Colin Seymour
Blog: http://www.colinseymour.co.uk
Tech Stuff: http://www.lildude.co.uk

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to