You are here

function lingotek_xml_decode in Lingotek Translation 6

Same name and namespace in other branches
  1. 7.2 lingotek.util.inc \lingotek_xml_decode()
1 call to lingotek_xml_decode()
lingotek_download_document in ./lingotek.api.inc

File

./lingotek.util.inc, line 76
Utilities

Code

function lingotek_xml_decode($text) {
  $text = str_replace("&lt;", "<", $text);
  $text = str_replace("&gt;", ">", $text);
  $text = str_replace("&apos;", "'", $text);
  $text = str_replace("&quot;", "\"", $text);
  $text = str_replace("&amp;", "&", $text);
  return $text;
}