Skip to content

Commit

Permalink
Strips html tags from question text before adding to select box.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1140 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Aug 26, 2004
1 parent 15b485e commit b2db42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/conditions.php
Expand Up @@ -272,7 +272,7 @@
$X="X";
foreach($theserows as $rows)
{
if (strlen($rows['question']) > 30) {$shortquestion=$rows['title'].": ".substr($rows['question'], 0, 30).".. ";}
if (strlen($rows['question']) > 30) {$shortquestion=$rows['title'].": ".substr(strip_tags($rows['question']), 0, 30).".. ";}
else {$shortquestion=$rows['title'].": ".$rows['question'];}
if ($rows['type'] == "A" || $rows['type'] == "B" || $rows['type'] == "C" || $rows['type'] == "E" || $rows['type'] == "F" || $rows['type'] == "H")
{
Expand Down

0 comments on commit b2db42e

Please sign in to comment.