Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php |
— | — | @@ -161,7 +161,7 @@ |
162 | 162 | $object = current($this->content); |
163 | 163 | next($this->content); |
164 | 164 | if ($object instanceof SMWDataValue) { //print data values |
165 | | - return htmlspecialchars($object->getStringValue()); ///TODO: escaping will be done in SMWDataValue |
| 165 | + return $object->getShortHTMLText($linker); |
166 | 166 | } elseif ($object instanceof Title) { // print Title objects |
167 | 167 | if ($linker === NULL) { |
168 | 168 | return htmlspecialchars($object->getPrefixedText()); |
— | — | @@ -189,7 +189,7 @@ |
190 | 190 | $object = current($this->content); |
191 | 191 | next($this->content); |
192 | 192 | if ($object instanceof SMWDataValue) { //print data values |
193 | | - return $object->getStringValue(); |
| 193 | + return $object->getShortWikiText($linker); |
194 | 194 | } elseif ($object instanceof Title) { // print Title objects |
195 | 195 | if ( ($linked === NULL) || ($linked === false) ) { |
196 | 196 | return $object->getPrefixedText(); |