Skip to content

줄바꿈 처리되어있는 경우 getSummary 추출 오류 수정#1221

Merged
1 commit merged into
xpressengine:developfrom
sejin7940:getSummary
Mar 19, 2015
Merged

줄바꿈 처리되어있는 경우 getSummary 추출 오류 수정#1221
1 commit merged into
xpressengine:developfrom
sejin7940:getSummary

Conversation

@sejin7940

Copy link
Copy Markdown
Contributor

DB 에 기록될때 엔터키 처리되어있는 경우 (

태그등이 기록될때 자동으로 생김 )
getSummary 에서 이를 제대로 인식 못하는 경우가 있다.
특히 이 값을 API 등에서 이용하기 위해 script 나 json 화 할때 값이 인식이 안 된다.

따라서 getSummary 과정에 nl2br 을 미리 한번 넣어 줄바꿈을 br 처리한 후...
그 아래에 br 을 제거하는 str_replace 로 다시 제거하는 방식을 취하면 에러없이 처리 가능하다

@ngleader ngleader added this to the 1.8.0.beta.1 milestone Feb 4, 2015
@ghost ghost modified the milestones: 1.8.0.beta.1, 1.8.0.beta.2 Mar 3, 2015
@ghost ghost modified the milestones: 1.8.0.beta.2, 1.8.0-beta.3 Mar 13, 2015
ghost pushed a commit that referenced this pull request Mar 19, 2015
줄바꿈 처리되어있는 경우 getSummary 추출 오류 수정
@ghost ghost merged commit 80ae13a into xpressengine:develop Mar 19, 2015
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants