Search: strip HTML tags from result text (DB pages only). Fixes issue 17.
authorDan
Mon, 29 Mar 2010 01:47:31 -0400
changeset 1228 9e9334417dbc
parent 1227 bdac73ed481e
child 1230 31d226269d2f
Search: strip HTML tags from result text (DB pages only). Fixes issue 17.
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)