Re: Storing HTML: HTML entities being rendered in that raw form

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: Storing HTML: HTML entities being rendered in that raw form
Дата
Msg-id 2AC845F1-B6AA-43A2-B688-428101E941DA@blighty.com
обсуждение исходный текст
Ответ на Storing HTML: HTML entities being rendered in that raw form  (linnewbie <linnewbie@gmail.com>)
Список pgsql-general
On Apr 9, 2009, at 9:27 AM, linnewbie wrote:

> Hi all,
>
> I have stored HTML in a text field that I subsequently render on the
> web.  However when I retrieve and render this data on the web I  am
> getting the entities being rendered in their raw form, ie, instead of
> getting the '&' symbol when '&' is stored  I'm getting the 'raw'
> '&'.
>
> I would be grateful if anyone can point out how I can get around this.
>

It's a problem in your code, not the database. You're probably
escaping it one time to many or unescaping it one time too few.

Cheers,
   Steve


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

Предыдущее
От: Marcin Krol
Дата:
Сообщение: Re: complicated query (newbie..)
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: complicated query (newbie..)