Thanks Sergey,
I think I will try this again with postgres using the command line to insert a text filed with html. When I was receiving the error message, I was trying to insert the text from an html web page. This will allow me to see whether the problem lies with postgres, or somewhere else.
LelandJ