Advertisement
Guest User

Dan da Man

a guest
May 11th, 2009
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. // Posted to: http://kovshenin.com/wordpress/plugins/wp-custom/
  2. // I was using this on a customers blog, and one thing that we found
  3. // was that putting HTML in the text field was not allowing us to edit
  4. // it correctly. Heres what I did to fix it. I took this line:
  5. $field_html = "<input class=\"widefat\" id=\"wpcustom-".$uid."\" name=\"wpcustom-".$uid."\" type=\"text\" value=\"".$value."\" />";
  6. // and changed it to:
  7. $field_html = "<input class=\"widefat\" id=\"wpcustom-".$uid."\" name=\"wpcustom-".$uid."\" type=\"text\" value=\"".htmlspecialchars($value)."\" />";
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement