tags:

views:

35

answers:

1

hi , i am using mysql db and php code.

i store value like this in db <u><strike><i><b>Opinion</b></i></strike></u>

that is with some editor. so how do i display it so that, it takes all the tags given to it.???

+1  A: 

You should always use htmlspecialchars() function when filling form values.
As well as textarea content.
It will preserve all your tags as is.

$text = htmlspecialchars($text);
echo "<textarea>$text</textarea>";
Col. Shrapnel