Skip to content

Commit

Permalink
Fix issue with custom link tags displaying, refs #9351
Browse files Browse the repository at this point in the history
Fixed issue with our custom link tags displaying, without being converted
to links, in search results. Fixed by converting to HTML then stripping
HTML tags and converting to text. Conversion to text was done so the
text in the results could be easily truncated.
  • Loading branch information
mcantelon authored and sevein committed May 15, 2016
1 parent 2a662e3 commit e124e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/qubit/modules/search/templates/_searchResult.php
Expand Up @@ -71,7 +71,7 @@
</ul>

<?php if (null !== $scopeAndContent = get_search_i18n($doc, 'scopeAndContent', array('culture' => $culture))): ?>
<p><?php echo truncate_text($scopeAndContent, 250) ?></p>
<p><?php echo truncate_text(strip_tags(render_value($scopeAndContent)), 250) ?></p>
<?php endif; ?>

<?php if (isset($doc['creators']) && null !== $creationDetails = get_search_creation_details($doc, $culture)): ?>
Expand Down

0 comments on commit e124e84

Please sign in to comment.