랜딩페이지 어드민을 새로 만들었는데 에디터로 이미지 저장시 \가 붙네요.
본문
랜딩페이지를 관리할 수 있는 어드민페이지를 만들고 있습니다.
landing_form.php // form
landing_form_update.php // 데이터 저장
테이블로 별도로 만듬 g5_landing
landing_form.php은 입력과 수정을 w=u 를 줘서 같이 처리하구요.
landing_form.php
페이지는
require_once './_common.php';
require_once G5_EDITOR_LIB;
이렇게 작성하고 아래처럼 출력하고 있습니다.
<?php echo editor_html("ld_content", $landing['ld_content'], 1); ?>
그리고 자바스크립트 부분은
<?php echo get_editor_js('ld_content', true);?>
document.getElementById('tx_ld_content').value = ed_ld_content.outputBodyHTML();
그런데 landing_form_update.php 에서 $_post를 찍어보면
<p><img src=\"https://depbreeze.mycafe24.com/data/editor/2509/20250911101655_f5569ab53dea59c4866c5266a8bc740c_l06t.gif\" alt=\"javaf_logo.gif\" style=\"width: 422px; height: 146px;\" /></p>
이렇게 역슬래시가 자동으로 들어가네요.
어떻게 해결해야 할까요?
답변을 작성하시기 전에 로그인 해주세요.