I've a problem when posting a summernote textarea.
If I write I <3 IT
inside visual editor, and set it as bold, and switch to code editor view I see: <b>I <3 IT</b>
All correct at this point.
But if I submit my form, in the destination page I get:
<b>I <3 IT</b>
So I can't encode, cause also <
of bold are encoded.... so i'm stuck in this situation that break my use of the string passed in the second page for other usage!
Trying use CTRL-I in firefox to view soucecode html i see: <b>I <3 IT</b>
so i think the problem is from submit of summernote logic?bug?
UPDATE: I know the problem! My textareas are dynamically added with a button "ADD NEW INPUT".
So when i post, I use a function to append text to form:
$("body").find(".mytextarea").each(function(index, element) {
var testo = $(this).val();
form.append($('<textarea class="hidden" name="textareas['+index+'][Testo]">'+ testo+'</textarea>') );
});
form.submit();
In this way seem to be a problem! How can I fix that?