mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 07:39:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@726 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1f0bbce146
commit
c0f2cd0831
1 changed files with 6 additions and 1 deletions
|
|
@ -754,8 +754,13 @@
|
||||||
* @brief 플러그인 코드를 실제 php코드로 변경
|
* @brief 플러그인 코드를 실제 php코드로 변경
|
||||||
**/
|
**/
|
||||||
function _transPlugin($matches) {
|
function _transPlugin($matches) {
|
||||||
|
// IE에서는 태그의 특성중에서 " 를 빼어 버리는 경우가 있기에 정규표현식으로 추가해줌
|
||||||
|
$buff = $matches[0];
|
||||||
|
$buff = preg_replace('/([^=^"^ ]*)=([^"])([^=^ ]*)/i', '$1="$2$3"', $buff);
|
||||||
|
$buff = str_replace("&","&",$buff);
|
||||||
|
|
||||||
$oXmlParser = new XmlParser();
|
$oXmlParser = new XmlParser();
|
||||||
$xml_doc = $oXmlParser->parse(trim($matches[0]));
|
$xml_doc = $oXmlParser->parse(trim($buff));
|
||||||
|
|
||||||
if($xml_doc->img) $vars = $xml_doc->img->attrs;
|
if($xml_doc->img) $vars = $xml_doc->img->attrs;
|
||||||
else $vars = $xml_doc->attrs;
|
else $vars = $xml_doc->attrs;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue