No bad HTML when there's quotes in options.

git-svn-id: https://develop.svn.wordpress.org/trunk@2322 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-02-14 04:39:17 +00:00
parent ed8a84e4cd
commit 5e087090d8
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ foreach ($options as $option) :
echo "
<tr>
<th scope='row'><label for='$option->option_name'>$option->option_name</label></th>
<td><input type='text' name='$option->option_name' id='$option->option_name' size='30' value='$value' /></td>
<td><input type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . htmlspecialchars($value, ENT_QUOTES) . "' /></td>
<td>$option->option_description</td>
</tr>";
endforeach;