Function cdata_parse
Ensures supplied data is properly encapsulated in cdata xml tags Called from getXmlProfile in News.php
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/News.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/News.php
string |
$data |
XML data |
string |
$ns = '' |
A namespace prefix for the XML data elements (used by mods, maybe) |
boolean |
$force = false |
If true, enclose the XML data in cdata tags no matter what (used by mods, maybe) |
string
|
The XML data enclosed in cdata tags when necessary |