- 1
- 260578
- 조회 수 689
<header> <div id="screen"></div> <!-- 헤더 부분. --> <div class='navbar'> <ul class="nav"> <li class="lit"><a href="index.php">ByWiki</a></li> <li id="sidenav"> <a href="#" id="sidenav-toggle">☰</a> <nav id="sidenav-menu"> <header id="sidenav-header"> <span id="close-sidenav">×</span> <div>메뉴</div> </header> <ul> <li><a href="board.html">게시판</a></li> <li><a href='index.php?return=도움말'>도움말</a></li> </ul> </nav> </li> <li id="searchbox" class="til"><form action="search.php" method="post" target="m_view"><input type="text" name="name" class="searchtext" placeholder="검색.."/> <input type="image" src="img\search.png"></form></li> </ul> </div> </header> <section id="contents"> <div id="main"> <!-- 콘텐츠가 보여질 부분. --> <div class="view"> <section id="m_main"> <span class="tbar"> <ul> <li> <form action="history.php" method="post"> <input type="hidden" name="hist" value="<?php echo $name;?>" /> <input type="image" src="img/history.png"> </form> </li> <li> </li> <li> <form action="do.php" method="post"> <input type="hidden" name="less" value="<?php echo $name;?>" /> <input type="image" src="img/Editing-edit-icon.png"> </form> </li> </ul> </span> <span id="d"> <h1><?php echo $name;?></h1> <hr class="title"> <div id="article"><?php include nl2br("d/$name.html", false); ?></div> </span> </section> </div> </div> </section> <footer> <div id="bottom"> <!-- 푸터 부분.--> <div class="footer"> <a class="footer" target="m_view" href="LICENSE">9.74 With Bywiki.</a> </div> </div> </footer>
줄바꿈이 처리되지 않습니다. 어떻게 해야할까요?
include 함수의 인자는 파일 내용이 아니라 파일명 이므로, 당연히 nl2br 은 적용되지 않습니다.