How do I allow HTML to be submitted from textarea, I am really desparate on this, every answer I found gives me poor info, coz I don't have idea what to do.
I have this textarea:
<input id="mytextarea" name="mytextarea" type="text" value="" placeholder="<?php _e('iframe'); ?>">
or:
<textarea id="mytextarea" name="mytextarea" type="text" placeholder="<?php _e('iframe'); ?>"></textarea>
I want HTML to stay as it is after submission, in my case html is removed.
The HTML tag only accepts plain (unformatted) text. Even if you add HTML to it, or try to format it, it will be removed. What you need to do is use a Rich Text Editor. There are many you can use, for example CKEditor and TinyMCE. You can use these editors in HTML mode (source code mode) and do what you’re trying to do.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With