mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 20:59:55 +09:00
글작성/댓글작성/서명부분의 위지윅에디터 코드의 자바스크립트/iframe 제거 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2233 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d7aa8157a6
commit
07d5c1c017
5 changed files with 23 additions and 3 deletions
|
|
@ -346,4 +346,16 @@
|
|||
return preg_replace('/%u([[:alnum:]]{4})/', '&#x\\1;',$str);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief iframe, script코드 제거
|
||||
**/
|
||||
function removeHackTag($content) {
|
||||
// iframe 제거
|
||||
$content = preg_replace("!<iframe(.*?)<\/iframe>!is","",$content);
|
||||
|
||||
// script code 제거
|
||||
$content = preg_replace("!<script(.*?)<\/script>!is","",$content);
|
||||
return $content;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue