how to save html to a database field
Posted
by ooo
on Stack Overflow
See other posts from Stack Overflow
or by ooo
Published on 2010-05-26T15:37:55Z
Indexed on
2010/05/26
15:41 UTC
Read the original article
Hit count: 226
i have an tiny editor web page where my users can use this editor and i am saving the html into my database.
i am having issues saving this html to my database. for example if there is a name with a "'" or if there are other html character "<,",">" etc, my code seems to blow up on the insert.
Is there any best practices about taking any arbitrary html and have it persist fully to a db field without worrying about any specific characters.
© Stack Overflow or respective owner