Converting back to HTML characters

heavenonfire

New Member
I want to convert a string to HTML entities/special characters so that I can store it into MySQL database. Example,This is the way it is stored in MySQL database.
\[code\]V3008-02, WS1 Drain Fitting 1” Straight w/Silencer\[/code\]and when rendered on the browse it shows
V3008-02, WS1 Drain Fitting 1” Straight w/SilencerMy application built in PHP using phpBMS package. I want to convert the rendered text back to original text so that I can store back to database.On the side note, which is the best way to store HTML tags in the database ?Is it \[code\]A 'quote' is <b>bold</b&gt\[/code\]or\[code\]A 'quote' is <b>bold</b>\[/code\]Regards
 
Back
Top