모바일에서 글 수정하니 이미지 태그의 " 따옴표가 붙어나오는 현상이 있었습니다.

 

1. 수정파일

\www\modules\marketplace\m.skins\campingjido\write_form.html

※스킨명은 다를 수 있음

 

2. 수정방법

<input type="hidden" name="content" value='{str_replace("\\","",($oDocument->getContentText()))}' />

원본에는 {$oDocument->getContentText()} 라고만 있습니다. 글 수정시 <img src="image.png"> 이런 식이 

글 내용 안에 있을 때 글 수정할 때

"image.png"의 " 따옴표가 그대로 노출되는 문제가 있어서

 

str_replace()를 사용해서 수정해줬습니다.

 

 

참조


{$oDocument->getEditor()}

{str_replace("\\","",($oDocument->getContentText()))}

{strip_tags(str_replace("\"","",(htmlspecialchars_decode($oDocument->getContentText()))))}

{strip_tags($oDocument->getContentText())}

http://blog.daum.net/_blog/BlogTypeView.do?blogid=0FnMj&articleno=456&categoryId=17084&regdt=20170523144909

https://moonhouse.co.kr/xetip/106089

https://xe1.xpressengine.com/tip/22445906

이온디

profile
이온디는 라이믹스를 비롯한 다양한 CMS의 시드뱅크를 꿈꿉니다. 여러분들이 사랑하는 웹소스를 언제든지 사용할 수 있게 하기 위해 이온디는 매일 소스코드를 유지보수하고 있으며, 언제든지 다운로드할 수 있는 소스마켓을 운영하고 있습니다.

#XE마켓 - 이온디스토어
https://eond.com/xemarket/

# XE/라이믹스 단톡방을 운영 중입니다. (비번: 2022)
https://open.kakao.com/o/giaKKnl

# XE/라이믹스 생활코딩 모듈 강좌입니다.
https://opentutorials.org/module/3774
  • profile
    좋은팁입니다 👍