테그가 그대로 나와버려요
본문
메일보내기를 게시판에 짜집기했는데
메일에 에디터 적용까지는 했습니다,
<!doctype html><html lang="ko"><head><meta charset="utf-8"><title>메일보내기</title><link rel="stylesheet" href="<?php echo G5_THEME_SKIN_URL?>/style.css"></head><body>메일내용:<p
내용
</p>
</body></html>
그런데 메일받아보면 테그가 그래도 나와요,,ㅜㅜ
쓰기부분 코드는 이렇구요
include_once(G5_EDITOR_LIB);
$editor_content_js = '';
$editor_html = editor_html('email_content', $email_content, $is_dhtml_editor, 250);
$editor_js = '';
$editor_js .= get_editor_js('email_content', $is_dhtml_editor);
$editor_js .= chk_editor_js('email_content', $is_dhtml_editor);
<?php echo editor_html("email_content", get_text(html_purifier($email_content), 0)); ?>
전송코드는 이렇거든요. ㅠ
어렵게 짜집기 한건데,,,여기서 또 막히네요
// html 이면
if ($type) {
$current_url = '<?php echo G5_THEME_SKIN_URL?>';
$email_message .= '<!doctype html><html lang="ko"><head><meta charset="utf-8"><title>메일보내기</title><link rel="stylesheet" href="'.$current_url.'/style.css"></head><body>메일내용:' .clean_string($email_content).'</body></html>
@mail($email_to, $email_subject, $email_message, $headers, $file);
답변 1
$current_url = '<?php echo G5_THEME_SKIN_URL?>';
위 코드를 수정
$current_url = G5_THEME_SKIN_URL;