# HG changeset patch # User Dan # Date 1269841651 14400 # Node ID 9e9334417dbc1bd2cd6fa7cdf5c4358c3560931c # Parent bdac73ed481e733e0c107eb85898a942f0ea70fd Search: strip HTML tags from result text (DB pages only). Fixes issue 17. diff -r bdac73ed481e -r 9e9334417dbc includes/search.php --- a/includes/search.php Sun Mar 28 23:10:46 2010 -0400 +++ b/includes/search.php Mon Mar 29 01:47:31 2010 -0400 @@ -447,7 +447,7 @@ { do { - $row['page_text'] = htmlspecialchars($row['page_text']); + $row['page_text'] = htmlspecialchars(strip_tags($row['page_text'])); $row['page_name'] = htmlspecialchars($row['page_name']); // Highlight results (this is wonderfully automated)