php DomDocument adds extra tags

后端 未结 5 716
伪装坚强ぢ
伪装坚强ぢ 2020-12-19 03:09

I\'m trying to parse a document and get all the image tags and change the source for something different.


    $domDocument = new DOMDocument();

    $domDo         


        
5条回答
  •  难免孤独
    2020-12-19 04:00

    If you are up to a hack, this is the way I managed to go around this annoyance. Load the string as XML and save it as HTML. :)

提交回复
热议问题