-
classic asp textarea <br> 처리언어의 온도/ASP Classic 2023. 3. 15. 11:34
* 함수를 만들자
* textarea 태그에 보이는 br 을 지워보자
Function text_area(str, gubun) '//chr(10) → <br> If gubun = 1 Then str = replace(str, chr(10), "<br>") End If '//<br> → chr(10) If gubun = 2 Then str = replace(str, "<br>", chr(10)) End If text_area = str End Function
* 호출
<%= text_area(content, 2) %>
참~쉽죠잉~
'언어의 온도 > ASP Classic' 카테고리의 다른 글
Classic ASP QueryToJSON 구현 (0) 2023.03.22 엑셀다운로드 숫자0 텍스트처리 (0) 2023.03.15