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:
parent
8e014dea63
commit
729562e1c2
|
@ -103,7 +103,7 @@ foreach ($options as $option) :
|
||||||
echo "
|
echo "
|
||||||
<tr>
|
<tr>
|
||||||
<th scope='row'><label for='$option->option_name'>$option->option_name</label></th>
|
<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>
|
<td>$option->option_description</td>
|
||||||
</tr>";
|
</tr>";
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|
Loading…
Reference in New Issue