랜딩페이지 어드민을 새로 만들었는데 에디터로 이미지 저장시 \가 붙네요. 채택완료
세진컴퓨터랜드
1개월 전
조회 135
랜딩페이지를 관리할 수 있는 어드민페이지를 만들고 있습니다.
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=\"<a href="https://depbreeze.mycafe24.com/data/editor/2509/20250911101655_f5569ab53dea59c4866c5266a8bc740c_l06t.gif\"" target="_blank" rel="noopener noreferrer">https://depbreeze.mycafe24.com/data/editor/2509/20250911101655_f5569ab53dea59c4866c5266a8bc740c_l06t.gif\"</a> alt=\"javaf_logo.gif\" style=\"width: 422px; height: 146px;\" /></p>
이렇게 역슬래시가 자동으로 들어가네요.
어떻게 해결해야 할까요?
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
답변을 작성하려면 로그인이 필요합니다.
로그인