250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- Spring Boot
- Eclipse
- SpringBoot
- MySQL
- spring
- 문서
- Python
- Source
- 오픈소스
- IntelliJ
- Docker
- error
- JDBC
- JavaScript
- Exception
- git
- maven
- ubuntu
- MSSQL
- 설정
- Open Source
- myBatis
- Thymeleaf
- AJAX
- jpa
- PostgreSQL
- Tomcat
- STS
- Core Java
- oracle
Archives
- Today
- Total
목록html entity (1)
헤르메스 LIFE
[Core Java] HTML entity 코드 변환
한때 &#으로 시작하는 이상한 문자열을 가져다 붙여넣기 하라는 글이 있었고, 신기하게 붙여넣기 하면 한글로 변형이 되는 것이 있었다. 다 와 같이 &#으로 시작하는 문자를 html entity 라고 하는데 아래 코드는 이러한 html entity 코드를 변환하는 자바스크립트, 자바 소스이다. 자바스크립트 : 자바 : package foren2.utils.http; public class HTMLEntityDecodeTest { public static String htmlEntityDecode( String s ) { int i = 0, j = 0, pos = 0; StringBuffer sb = new StringBuffer(); while (( i = s.indexOf("&#", pos) ) != -..
Core Java
2021. 3. 23. 00:41