Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- TextBox
- install
- 확장자
- ubuntu
- Oracle
- JavaScript
- Python
- Postfix
- yum
- 한글 깨짐
- docker
- 일괄변경
- centos
- RabbitMQ
- replace
- i18n
- TPL
- 천단위
- Selectbox
- mariadb
- Eclipse
- php
- random
- MySQL
- 부모창
- SVN
- 문자열자르기
- jQuery
- smarty
Archives
- Today
- Total
목록replace (1)
wilson's story
html 변환해주기
$search = array ("']*?>.*?'si", "''si", "'([\r\n])[\s]+'", "'&(quot|#34);'i", "'&(amp|#38);'i", "'&(lt|#60);'i", "'&(gt|#62);'i", "'&(nbsp|#160);'i", "'&(iexcl|#161);'i", "'&(cent|#162);'i", "'&(pound|#163);'i", "'&(copy|#169);'i", "'&#(\d+);'e"); $replace = array ("", "", "\\1", "\"", "&", "", " ", chr(161), chr(162), chr(163), chr(169), "chr(\\1)"); $text = preg_replace($search, $replace, $con..
PHP
2008. 4. 7. 14:20