php dom get image src path encode
<p>I use below codes to extract image src path .but this is a problem when the image filename has  special character(eg:~ DQBTZ_UC(G@STWO_1R2U_Q4.gif),the output turn to be like this :~  6Z6W4%255BO29FQ%255BA4YN_%255BFR9%2529M.gif</p>

<p>How to fix this issue? sorry for my poor English.</p>

<pre><code>function _get_imagepath($content){

    $doc = new DOMDocument();
    $doc-&gt;loadHTML($content);
    $imagepaths=array();
    $imageTags = $doc-&gt;getElementsByTagName('img');
    $folder=file_directory_path();
    foreach($imageTags as $tag) {

        $imagepaths[]=$tag-&gt;getAttribute('src');
    }

    if(!empty($imagepaths)){

        return $imagepaths;
    }else{

        return FALSE;
    }

}
</code></pre>
