Suggestion for search results of static pages
Posted: Wed Jul 16, 2008 5:14 pm
Hi,
I installed s9y a couple of days ago for the first time. I started playing around with some static pages and noticed that search results contain HTML tags (which I consider disturbing). Maybe you would like to implement the following change in plugins/serendipity_event_staticpage/plugin_staticpage_searchresults.tpl:
Instead of I used
Looking at the smarty docs it seems that @strip_tags seems to be the prefered way of removing the tags. I also added @strip to collapse multiple spaces.
Regards,
Stefan
I installed s9y a couple of days ago for the first time. I started playing around with some static pages and noticed that search results contain HTML tags (which I consider disturbing). Maybe you would like to implement the following change in plugins/serendipity_event_staticpage/plugin_staticpage_searchresults.tpl:
Instead of
Code: Select all
{$result.content|@escape:htmlall|@truncate:200:" ... "}Code: Select all
{$result.content|@strip_tags|@strip|@truncate:200:" ... "}Regards,
Stefan