git-svn-id: http://xe-core.googlecode.com/svn/trunk@726 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-27 11:41:07 +00:00
parent 1f0bbce146
commit c0f2cd0831

View file

@ -754,8 +754,13 @@
* @brief 플러그인 코드를 실제 php코드로 변경
**/
function _transPlugin($matches) {
// IE에서는 태그의 특성중에서 " 를 빼어 버리는 경우가 있기에 정규표현식으로 추가해줌
$buff = $matches[0];
$buff = preg_replace('/([^=^"^ ]*)=([^"])([^=^ ]*)/i', '$1="$2$3"', $buff);
$buff = str_replace("&","&",$buff);
$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;
else $vars = $xml_doc->attrs;