function lingotek_xml_decode in Lingotek Translation 7.2
Same name and namespace in other branches
- 6 lingotek.util.inc \lingotek_xml_decode()
2 calls to lingotek_xml_decode()
- LingotekComment::updateLocalContent in lib/
Drupal/ lingotek/ LingotekComment.php - Updates the local content with data from a Lingotek Document.
- lingotek_download_document in ./
lingotek.api.inc
File
- ./
lingotek.util.inc, line 128 - Utility functions.
Code
function lingotek_xml_decode($text) {
//return htmlspecialchars_decode($text);
$text = str_replace("<", "<", $text);
$text = str_replace(">", ">", $text);
$text = str_replace("'", "'", $text);
$text = str_replace(""", "\"", $text);
$text = str_replace("&", "&", $text);
return $text;
}