[ticket/11637] generate_text_for_display on search.php

sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*

PHPBB3-11639
Merge pull request #1640 from brunoais/ticket/11637

[ticket/11637] generate_text_for_display on search.php