메뉴 건너뛰기

Dev tips

JavaScript 태그삭제하는 스크립트

taknim 2010.06.16 23:54 조회 수 : 9850 추천:2667

http://www.sujunggusul.com/hikboard/board_view.php?cate=&tablename=bbs_all&gopage=2&search=&Sname=&Stitle=&Scontent=&index=158<script>
function stripHTMLtag(string) {
var objStrip = new RegExp();
objStrip = /[<][^>]*[>]/gi;
return string.replace(objStrip, "");
}
</script>