Re: store and retrieve html in postgres from rails

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: store and retrieve html in postgres from rails
Дата
Msg-id CAKFQuwbkYHDTS7u6ij9sSZUbhCbv_SUYe79nJQtX51nV3SQmUg@mail.gmail.com
обсуждение исходный текст
Ответ на store and retrieve html in postgres from rails  ("john.tiger" <john.tigernassau@gmail.com>)
Список pgsql-general
On Mon, Mar 30, 2015 at 1:06 PM, john.tiger <john.tigernassau@gmail.com> wrote:
want to include html text from newsletters into postgres - then retrieve

have seen posts saying this is really difficult (?) and others just sugesting pg_escape_string and pg entities -
tried to put into text field but it seems stripped out
does anyone have a good suggestion

​Forget structural format.  What you are doing is storing and retrieving text.  Use the "text" data type.  If you are having issues supply some code/examples so others can point out what you are doing wrong.  Saying "it seems stripped out" doesn't communicate anything substantially useful.

​You can encode and decode at the application layer.​

David J.
 

В списке pgsql-general по дате отправления:

Предыдущее
От: "john.tiger"
Дата:
Сообщение: store and retrieve html in postgres from rails
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: JSON "pretty" and selecting nested JSON fields