Tower
Tower

Reputation: 102785

PHP DomDocument Save XML with HTML

How would I save an XML file opened with DomDocument so that the HTML inside won't be encoded into HTML entities?

Upvotes: 0

Views: 1663

Answers (1)

George Sisco
George Sisco

Reputation: 621

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.

Upvotes: 1

Related Questions