Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php |
— | — | @@ -317,7 +317,7 @@ |
318 | 318 | } |
319 | 319 | } elseif ($description instanceof SMWConceptDescription) { // fetch concept definition and insert it here |
320 | 320 | $dv = end($this->m_store->getSpecialValues($description->getConcept(), SMW_SP_CONCEPT_DESC)); |
321 | | - $desctxt = ($dv!==false)?$dv->getXSDValue():false; |
| 321 | + $desctxt = ($dv!==false)?$dv->getWikiValue():false; |
322 | 322 | if ($desctxt == false) { // no description found, concept does not exist |
323 | 323 | // keep the above query object, it yields an empty result |
324 | 324 | ///TODO: announce an error here? (maybe not, since the query processor can check for |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Concept.php |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | } |
60 | 60 | |
61 | 61 | public function getWikiValue(){ |
62 | | - return $this->m_concept; |
| 62 | + return str_replace(array('<','>','&'),array('<','>','&'), $this->m_concept); |
63 | 63 | } |
64 | 64 | |
65 | 65 | public function getExportData() { |