Re: Storing HTML: HTML entities being rendered in that raw form
В списке pgsql-general по дате отправления:
| От | Richard Huxton |
|---|---|
| Тема | Re: Storing HTML: HTML entities being rendered in that raw form |
| Дата | |
| Msg-id | 49DEFA94.9040501@archonet.com обсуждение исходный текст |
| Ответ на | Re: Storing HTML: HTML entities being rendered in that raw form (linnewbie <linnewbie@gmail.com>) |
| Список | pgsql-general |
linnewbie wrote: > What I have on disk would be: > > <p> Bonnie & Clyde</p> > > which would usually be rendered as: > > Bonnie & Clype > > but this is not happening, it's being rendered > as: > > Bonnie & Clyde There are only three options. 1. That is *not* what you have stored in the database, it's being escaped on the way in. 2. You aren't displaying what *is* stored in the database, it's being escaped on the way out. 3. You are rendering it as text, not HTML Break your problem into pieces and test each in turn. Store exactly that string and check it with psql. Examine exactly what you have when you read it from the database. Display two copies - one you have from the database and one you manually set in a variable. Do they differ? -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера