최신글
본문
이렇게 나오는건 어떻게 수정해야할까요? 메인에 최신글 뽑은건데 이렇게 나오네요 ㅠㅠ
답변 2
str_replace 를 이용해서 제거하시든 혹은 공백처리로 해주시면 되겟네요
$content = str_replace(" ","",$list[$i]["content"])
또는
$content = str_replace(" "," ",$list[$i]["content"])
이런식으로 하시면 되겠네요
$content 와 $list[$i]["content"] 는 정확하지 않을수 있으니 실제 반환되는 내용변수가 어떻게 되는지
확인하시고 수정하세요
$line = str_replace("\xC2\xA0", " ", $line);
http://stackoverflow.com/questions/16320089/parsing-nbsp-characters-as-spaces
답변을 작성하시기 전에 로그인 해주세요.