Mam problem bo nie wiem czemu przy zapisie Ajaxsem zamyka mi znaczniki html.
Mam taki zapis do bazy
A po zapisie mam coś takiego
A tak mam zrobiony zapis do bazy
function seve_template_email(){ $template_id = $_POST['template_id']; $template_name = $_POST['template_name']; $template_format = $_POST['template_format']; $template_sender_name= $_POST['template_sender_name']; $template_sender_email= $_POST['template_sender_email']; if($_POST['template_format'] =="html"){ $template_subject= $_POST['template_subject']; $template_content= $_POST['template_content']; }else{ $template_subject= $_POST['template_subject']; $template_content= $_POST['template_content']; } $wpdb->update(EMAIL_TEMPLATES_TABLE, array('template_name' => $template_name, 'template_format' => $template_format, 'template_sender_name'=> $template_sender_name, 'template_sender_email'=> $template_sender_email, 'template_subject'=> $template_subject, 'template_content'=>$template_content), array('template_id' => $template_id)); }
I nie wiem czemu zamyka mi znacznik html. co jest nie tak
