No bad HTML when there's quotes in options.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-14 04:39:17 +00:00
parent 8e014dea63
commit 729562e1c2
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;