简体   繁体   中英

PHP DomDocument Save XML with HTML

如何保存用DomDocument打开的XML文件,以免将其中的HTML编码为HTML实体?

I'd say, read through it however you normally are going to, then use html-entity-decode()

http://www.php.net/manual/en/function.html-entity-decode.php

in whatever you are using to write it back out as xml.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM